Sex and periods

Can having sex a day before you start your period throw your period off?