Indeed - or a diode (sometimes with a small series resistor) across the inductive load (common when semiconductors feed inductive loads such as relay coils).The back EMF from an inductive load can be absorbed by a contact suppressor fitted across the switch contacts.
Kind Regards, John