Period after sex

I got my period a day after my first time. Did the sex bring it on or is it coincidental??