15 weeks pregnant, spotting and yeast infection

Can the yeast infection be causing this spotting?