Fluconazole 150Mg safe???

went to the ER because i was leaking a lot of fluid. they did a sweep but thank god it wasn't amniotic fluid. they did find that i had a yeast infection and prescribed me only one pill of fluconazole 150mg. i was doing some research and read that this wasn't safe for pregnancy. i tried monistat and clotrimazole cream but it didn't seem to work. what can i do? can i take the pill ? i'm so stressed because i just don't know what to do..