Period and sex

Does sex affect your period schedule?