worried about vagina pill

Im in my TWW and Ive also gotten yeast infections last 2 days ago. right now Im on antibiotics & also, ive been given pills to be inserted to my vagina for 4 nights. Doctor said that the antibiotic/pill arent safe for pregnancy but what if I conceived? 😩 i am abit worried. Does anyone ever take antibiotics or pills that arent safe for pregnancy but still has a successful pregnancy?