Could that happen? It's not that hard to know that the doors can be locked, and if so, you pretty much give up on trying to get in to the cockpit to take over the plane.