Safe to Flying during early pregnancy ?

So I had a question about flying during early pregnancy, is it safe ?

I want to try for a baby soon but I’m flying overseas , only for two weeks though . If I was to get preg before then would it be okay ?

I’m only asking because I herd a story from a friend who was only few weeks preg and miscarried after a flight . She said it was from the air pressure of the plane which caused her to lose the baby . Would this be true or would it just be unfortunate she miscarriaged at this time.