Simply put, there must be at least two people in the cockpit at all times when the aircraft is airborne. Indeed, when flying below 10,000 ft, the sterile cockpit rule applies, which prohibits all unnecessary conversation and activities. This includes leaving the cockpit for reasons other than absolutely necessary.