Temperature fluctuation can cause a number of undesirable effects. So if you were too leave it on the window sill permenantly, it would probaly survive, but be seriously stunted. If your growing just for the experience, I would say keeping it in the warm over night is better than leaving it in freezing conditions, at least that way the temperatures between daytime and nightime won't vary so much.