I cannot imagine how many things I wouldn't have been allowed to do and how many chores I would be assigned at 5 in the morning had I done that. The school punishment would have been the least of my worries.
We don't have kids yet but we've discussed a lot of the struggles around devices both in terms of usage and when and what kids get exposed to. I have no idea how you're supposed to handle it in this day and age but my instincts say to expose them to a lot and help them understand which of those things are right and wrong. I've seen a lot of kids exposed to nothing until they're in high school or so and then they have no idea how to manage themselves.
I couldn't imagine being a MS or HS kid today because of devices and social media. They are never, ever disconnected from their social world. And that's not a good thing. When I was that age and home for the night, I was disconnected from friends, enemies, girls, etc., except for the occasional phone call. I think you need that. Kids today don't get that. They are ALWAYS connected and in communication with each other, 24/7, which opens up so many doors to pressures, bullying, social stigmatizing, etc. It's seriously f*cking horrible.