Thanks for writing in to Healthcare Magic!
per se would not affect periods or fertility
but can affect in those who are taking oral hormonal
contraception-it decreases there efficacy.
In your case the explanation for the delayed periods may be that infection is a stress
and any stressful event can delay the menses.
If you have any further query please let me know I would try to answer it for you.
Wish you a great health!