Yes, track lighting does require a junction box. If there is not already a junction box present, you’ll need to install it or have a licensed electrician install one. Code requires that almost all types of lights are enclosed in a junction box, which is a metal or plastic box that protects the wiring from the elements and protects you from the wiring. In this case, track lighting is no exception to the rule.