Depending on the roof construction it may not be that easy. A true least not without tools. And then you're very likely to end up trapped in there and drown if the water level comes up over your roofline
My attic at least has several layers of plywood between the airspace and the felt. Probably why you see footage of rescue teams trying to get to the attic from the outside... with axes.