Ok to use for yeast infection

So i have a yeast infection is it ok to use monistat? Im 31 weeks and some days