I'm not a doctor but as far as I know melatonin helps you to adjust the body clock to a regular sleeping time, it means going to bed all the nights at the same time. Depends which kind of flights you have... but, usually, we always change time, that's why melatonin cannot be a solution.