Need advice

I started the pill a couple of weeks ago and me and my boyfriend have had unprotected sex 4 times during my fertile window. It’s been 5 days since the first time we did it and I have been feeling very nauseous and have been getting a small pain in my womb area the past couple of days. I’m aware I could be pregnant, when the soonest I can take a test?