Transistor as a switch, what does the inductor do?
The inductor isn't something you want to have in the circuit.

But if your load is a motor or a relay coil, for example, it will behave like an inductor, and you'll have to design your control circuit to not destroy itself when switching that load.