It is perfectly safe to fly once in a while if your delivery date is more than six weeks away. Passing through X ray scan at airport security will also not affect your baby. If your flight is a long one, just move around a bit and stretch your legs.