Air traveling and pregnancy

Is it safe to travel by plane when pregnant?im currently 5 weeks and im planning to travel for six months