If your ceiling lacks an electrical box, you’ll need to install one. This involves cutting an appropriate-sized hole in the ceiling, routing the electrical wiring, and securing a brace or a heavy-duty remodel box that can firmly attach to the drywall.