Miconazole yeast infection 30 weeks

I’m 30 weeks and have a yeast infection is it safe to use this??