It might hurt, it might not.
If its a autoflower i wouldnt sweat it.
But if its light dependent, then your gonna want to avoid it, but depending on how important the thing you have to be away for is, i would make a smart decicions, remeber your plant won't suddenly die after a couple extra hours of light.
The best you could do is get a analog or digital timer so you have ur lights turning on and off at a certain time leaving you free from being the switch master.
Best of luck, your plant will do just fine.
Hope it answered ur question.