Yeast infections

Hey ladies, I believe I have a yeast infection. Tmi sorry.. But I usually get my dr to call in diflucan. AF is due any day now so there's still a possibility I could be pregnant.
Does anyone know if diflucan is safe to take when you're pregnant? I hate using the Otc cream it doesn't really work for me.