Yeah, almost all animals need a light cycle in order to sleep and function properly, I doubt snakes are any different.