vagina pain?

I’m having vagina soreness and I have period sex (so the last couple of days there’s been like zero lubrication having sex because we usually start with oral and we couldn’t do that because of my period) & I use tampons and it kind of hurts to put a tampon in. I know it could be a yeast infection, I’m going to the doctor this week, I was just wondering if anyone knew if it was just from the sex or not. No pain while peeing it’s just sore after sex and when I put a tampon in.