I don’t know if it would stop you getting in..you actually have to make that confession on your medical declaration (although many don’t and never get caught) and periodic liver function checks result. However the ranks of the profession are littered with those awaiting the returns of their drivers license or with real convictions on their records.
Two points 1/ if you fall on your sword and confess your sins, its not usually the end of your career
2/ this industry and the people in it will drive you to drink