Why am I bleeding 4 days after my period ?

Dyamond

I has sex the first 3 days after my period. And today I’m spotting , is it because sex or not pooping when I should