Valium and pregnancy

I need to make an overseas flight and i get really bad panic attacks whenever im on a plane so only fly if i absolutely have too. Is it safe to take a couple of valium while pregnant i would be like 18weeks at that time. I would only take it on the flight going and returing. Will it hurt my baby?