Yeast infection?

So I have a yeast infection. I used to never get them but I started to noticed that I started getting them once I let my bf finish inside me. I’m on Bc btw. Can this be a reason why I’m getting yeast infection?. It’s not all the time but from time to time. I also notice if I do get one it’s on the last row of active pills before I start my period.