Diflucan

Ok this is my second pregnancy. First one ended in a m/c. Well I have a yeast infection and I am only like 5 weeks, is it safe to take diflucan? The dr prescribed it, but I am worried!! HELP