Yes, it is important to turn off the electricity before installing the lights and to use proper electrical wiring techniques to prevent fire hazards. It is also recommended to consult a professional if you are unsure about the installation process.