Yeast infection

Anyone doctor prescribed them Terazol to treat yeast infection during early pregnancy. I read up on it and its a thing a have to stick up my vagina but every where I read it says its not safe to use during early pregnancy only second and third trimester.