Yes, some airline pilots do carry guns in the cockpit but carry a gun lawfully they must belong to a special program called the Federal Flight Deck Officers (FFDOs). This program requires special training and pilots who enroll have strict limitations on when they can use the firearm.