My hamsters are all kept in my room, with a light on all night. They have never been bothered by it and are still active
However, I can't say that some might not be affected by it, others may be able to give a different opinion.
The only thing i have seen it affect is my winterwhites coat, I believe the lighting confused their natural coat change. So Squirt was in winter coat during summer and summer coat during winter