Pilots can drink after a flight as long as they are completely done for the day and aren't inside the window of not drinking for the following day. FAA requires 8 hours from bottle to throttle. Some company rules are more restrictive. 10 or 12 hours before any assigned duty is common.