Yeast infection meds safe?

Alexa

I’m currently 37 weeks pregnant. I tested positive for yeast infection yesterday and my doctor prescribed me a one time pill called fluconazole it is 150mg. Is it safe to take at this stage in my pregnancy just once? Just wanting some reassurance.