Your transistor(s) must be able to handle the current involved in this type of switching.
Also, remember, that you will have a ripple voltage which will be dependent upon the size of your capacitor, your inductor.[ Parent ]