Ofc you can use it, but thats not the best or performant approach. I could even call it a bad practice, cause the system doesnt even require it.
Pretty much depends on the code you are using to turn off/on the lights…
I mean, from that script you already know when all lights are on and off, no need extra checks, but it depends on how it looks like.