Yes. That way you can extend light in the winter to prevent laying from dwindling. You could add some sort of heat to the waterer if you're in a cold climate as well. There are probably a ton more reasons to have electricity that I can't think of.
I like it for lights on short winter days, keeping the water unfrozen and for brooding new chicks in the coop. Sometimes you just need to see what you're doing in the evening, when you come home after dark. As Pat said, just do it right, so it's safe.
I hard wired a really long extention cord to my coup and plug the coup into the outside GFI outlet. That way I am protected from electrocution by the GFI and also protected from "the man" for any code violations. The building is temporary and not diretly connected to the house electricity. I hardly have it connected in the summer time, but in the winter it is almost always plugged in. It's one way to do it.
I ran the wire through PVC pipe (about 110') and just laid it on top of the ground. Wired it into an existing GFI circuit that sees light duty for protection as well. Love it for all things, heated water bowl in winter, lighting, electric fence charger...last but not least, tools!
Well worth doing. lighting at nite if you need to go in, I keep a nite light for the birds, If it gets to hot a fan for ventilation, a blower when you clean out shavings to renew, when you want to redo something the power is there to work with too. I also ran water to the outside.