I've done it before and it survived fine, and it was at the end of flowering in the fall.
EDIT: I should add that the reason why I did it was so that I could keep the strain and it was done when the plant was finished flowering. I wouldn't uproot it in the middle of flowering and take it inside to finish. One other problem you can encounter is that you may bring in pests from outside into your growroom.