It's forbidden in the United States, according to the Federal Aviation Administration. If a pilot steps out of the cockpit, “another qualified crew member must lock the door and remain on the flight deck until the pilot returns to his or her station,” the FAA said in a statement Thursday.