Prescription during pregnancy


Hey everyone! So as a nervous expecting mother I am paranoid about taking any prescription pills. I am prescribed .5 mg Xanax that I only take time to time (30 day supply last me about 4 months) I believe I took one earlier in the day the night we conceived and another about 5 days later and nothingsince. I am so nervous that this will have a negative effect on my pregnancy. Anyone else take anything prescribed not knowing they were pregnant?