What is the use of a transformer in a DC DC converter circuit？
There are three main roles:
1) Power transfer: The transformer transfers the input side energy to the output side.
2) Voltage conversion: By setting the transformer turns ratio, the given input voltage is converted into the required output voltage.
3) Insulation isolation: Insulation isolation between the input side circuit and the output side circuit.