Can you have a junction box behind drywall?
Similarly one may ask, can a junction box be in a wall?
A junction box, also known as a splice or switch box, is an electrical enclosure inside your home that contains wiring. Electrical wires run behind the walls and through the ceiling of your home, meeting at junction boxes. It is a safety hazard to completely bury a junction box in a wall.
Subsequently, one may also ask, are junction boxes illegal?
2 Answers. You cannot cover any junction box that still has live wires in it. Your best bet is to either remove the box all together or just put a cover plate on it. If there are live wires in the box, sooner or later you will need to get to the box again, which you can't do if you've covered it over!
If you do need to extend the wires, yes, a junction box would be needed. It must remain accessible. You've pretty well identified your two choices; if you don't want to re-run longer cables, you'll need to splice in some additional cable.