Pilots who have been diagnosed with depression, anxiety or other mental health conditions are not automatically prohibited from flying. But the FAA requires them to be closely monitored because their conditions and medications can affect their ability to safely handle an aircraft.