I understand where you are coming from, anxiety is difficult to deal with and pregnancy
can make it worse. First thing taking any medication
that is not prescribed to you, pregnant or not, is not a smart idea. Second xanax is a narcotic so it's a risky medication for anybody to take. Also said talk to your doctor, there are medications considered safe for pregnant woman with anxiety. Please also let your doctor know that you have taken the xanax in case something happens do to it.