Unprotected sex

My partner was inside me without a condom, but he didn't cum, and it was for a short time. I was worried so I also took a pill after it. I'm still paranoid about being pregnant. Should I stop worrying?