Doctors rarely recommend sleeping tablets for flying for several reasons. Some tablets render you immobile, which would be problematic during an in-flight emergency. Even if you're OK with that small risk, avoid sitting near an emergency exit where you could be responsible for many lives in an emergency.