can sex start period early ?

Yesterday me and my boyfriend had sex really deep and I’m not suppose to get my period for 5 more days and I’m usually late but right after i got my period really heavy and painful and wondering can sex cause it to come on ?