Traveling While Pregnant?

My fiancé and I lived 20 hrs away from our families and we decided to have the baby shower back home, since everyone we know is there. I want to go back from the shower. I will be starting the third trimester during that time. Is it okay to fly during the third trimester?