Yes, solar motion detector lights work by using a sensor to detect movement and then triggering the light to turn on. The light will stay on for a set amount of time, usually around 30 seconds, before turning off again. This allows you to have security lighting without having to leave a light on all night, which can save you money on your electricity bill.