Can you fly while pregnant??

Ca
Me and my husband already planned a vacation in august before we found out I was pregnant ! I'm due the end of October. Would it be saving to fly or just drive ??