Diflucan ok at 29 weeks?

My Ob prescribed me due to yeast infection, but when I picked it up the pharmacy told me they were concerned since I’m pregnant??? I’m so confused 🤯 baby should be ok righhhht..?