Spotting and yeast infection?

Kat
Can a yeast infection cause cramping and spotting? I have had cramps and spotting on and off since 5w2d and I am now 7w1d and was diagnosed with a yeast infection yesterday. The doc did not say whether or not the two had anything to do with each other. Just hoping anyone had some insight!