is this normal?

i feel really nauseous and i have a huge headache i'm also having sort of light pains in my stomach area. my period is just about ending, like there's brown to almost nothing when i wipe. i had sex thursday while i was still on my period and also earlier today. it started today. does this have anything to do with my period or with sex?