Yeast infection 6 weeks pregnant

I have a yeast infection and was prescribed Clotrimazole by my doctor

Yesterday I got a call from the office saying I tested positve for yeast infection (they took a culture from the inside of my vagina) well she said the doctor said bc I have the yeast infection inside that i can put the cream inside my vagina as well ? Is this okay ? I dont want to do any harm to my baby