Safe to travel before 12 weeks?

Hi it's my first pregnancy and wondering if it's safe to fly at 12 weeks pregnant? I have a 4-5 hour flight planned.