Sex during forth or fifth day of period

I have done sex during forth day of my period now i m suffring from vaginal infection