Yeast infection

Has anyone taken this while pregnant? Currently 31 weeks,the cream is just not working because every time I use the bathroom (which is all night) it falls right out.