Should I take the pill?

I had sex for the first time and we weren't safe. Should I take the next day pill? I know there's not many chances of pregnancy since he pulled out. I'm probably overreacting but, I'm just really scared about the possibility of getting pregnant :/ any advice?