Top Notch Wiring A Receptacle To A Light Switch
You cannot connect a receptacle outlet to this type of switch wiring because there is no neutral wire in the switch box but you can at the ceiling electrical box assuming there is enough room for the extra wires.
Wiring a receptacle to a light switch. Here is what you would have to do if possible change out the 2 wire to 3 wire cable from switch to light. Then install a cable from each switch box location up to the light fixtures. How to wire up a electrical outlet to a light switch.
Bring the circuit power source into each switch box looping from one switch box to the other and then extend the power source out to the receptacle location. Again no ground wires are shown in the diagrams just to avoid clutter so you can clearly see how the circuit works. The neutral is needed for the use of electronic dimmers timers and wifi smart home devices that can be installed instead of.
It is required by the national electrical code nfpa 70 that a neutral conductor be available in each light switch electrical box. As you can see connecting a receptacle to the light would see the receptacle only hot when the light switch is on.