In most large commercial airlines, pilots are allowed to have facial hair, as are the flight attendants. However, this facial hair does need to be kept tidy (neatly trimmed) or stylish (longer beard styles) and shouldn't make the aviation pilot look less professional.