They will be just fine. It just takes them a couple days to adjust again.
Some people change the lights to sex their plants then change it back when they know which the females are. Might not be the best idea but I've honestly never heard any problems from it.