The DC-DC converter is a DC converter. Because the DC voltage cannot be changed by the transformer, the DC voltage should be changed into AC voltage through oscillation, next, the voltage is increased or decreased by the transformer or chopper, and then filtered into the required voltage. Generally, the voltage regulator can only decrease the voltage, but not increase it.
If you follow the link talking about the LM2936M-5.0, you will benefit from it and have a better understanding of the voltage regulator.