can tampons give you yeast infections?

My period just ended two days ago and now I'm dealing with a yeast infection. When I was using the tampons I started getting irritation while using it. Could it be my period or the tampons giving me the yeast infection?