Can sex make your period differ?

So I had sex about June 23 and now my period came three days early and was heavy for two days and now it’s extremely light which isn’t very normal for me. I was wondering if sex can change the timing and flow of your period?