Those longer acting medications should be avoided for short flights. For example, you wouldn't want to use a long-acting medication like Ambien on a short flight. Why? You could find yourself too groggy to take care of yourself when you arrive at your destination or during an emergency, he said.