Yeast Infection pregnancy/miscarriage related?

Er

At my first dr appt at 5 weeks they saw the sac and also said I had a yeast infection. They said they’re very common with hormones changing in early pregnancy. So they prescribed medicine and it went away. I miscarried about a week ago (6 weeks exactly) and spotted for a few days after but now it seems that I have another yeast infection. Could it be caused by the miscarriage and my hormones changing again? Has anyone else experienced this?