Yes. In the early days, fans, toasters and such things were plugged into the ceiling light.

The plugs were basically these screw-thingies that fit into the lampholder.

Some were actually two-part adapters that combined a regular plug and a screw-in adapter.

Amazingly these adapters and the "plug clusters" that allowed you to plug in more than one bulb or appliance into one lampholder are still manufactured, sold and widely used in this part of the world (both North and South America).