I think I'm pregnant

So my bf and I had sex for the second time and he didn't finish inside of me but I'm scared I'm pregnant bc of precum. I've been having really bad cramps lately, feeling sick, etc. it's all the symptoms of being pregnant but it's only been a week and I can't take a pregnancy test for another week. Is there anyway I can still take a pill to stop the pregnancy from happening?