yes you can take it inside and put it out again when it gets dark.
- The moon and stars will not be a problem.
- Streetlights could potentially, if they're very bright, and very close. but you can measure that simply by looking at the place you have your plant.. If the light don't reach, it's dark enough. Never heard of streetlamps affecting flowering tho, so while it's a possibility, it's very unlikely to happen unless the plants are straight under them.