Help please

Im due on my period 1st september. But for the last week and a half ive been having cramping and feeling sick. Had creamy discharge for two days maybe more .Every month ive come on earlier than im supposed to like almost a week early but this time nothing. Me and my partner did have unprotected sex and he came inside. Sorry for tmi (picEv

Should i test? Thankyou for any advice xx