All perfect praise be to Allah, The Lord of the Worlds. I testify that there is none worthy of worship except Allah, and that Muhammad,
, is His slave and Messenger.
Working as a pilot is not forbidden. If alcohol is served on a flight, then this is undoubtedly evil, but it does not render the job of the pilot prohibited if his work does not involve offering alcohol (to passengers) or helping in it.
He must deny this evil according to his ability.
For more benefit on working as a pilot, please refer to Fataawa 387943 and 335077.
Allah knows best.