Could I be pregnant?

i had unprotected sex a few days before af then i had my period for six days. It's been 3-4 days since af has been over but now I'm having cramps. I took a test yesterday but it was negative. Could I still be pregnant?