Can losing my virginity affect my period?

I heard some girls say that when they first had sex their cycles were everywhere. Like it just altered the length of how long their periods would last and the menstrual patterns each month. Is this true?