Can you leave an iphone recording video all night?

I'm shooting a time lapse with my iphone 6s, and i was wondering if it was safe to leave it overnight. It's a time lapse so…

As long as its plugged into power to prevent the battery from dying mid-video and you have enough space to store the video, I don't see a problem with that. I did similar things with my older iPhones.

It's safe. It may run down the battery, however.