A little scare

Sooo... basically last Thursday I tried to have sex with my boyfriend it lasted 30 seconds he didn’t cum but I’m worried about pre cum... we stopped bc I didn’t feel comfortable with the pain and new pulling out isn’t protection. I had just got off my period that day. It’s been five days. When do I take a test and are my chances of pregnancy high? I’m fifteen and I haven’t had sex before... I’ve been having so much anxiety and I’m a over thinker. Help please 🙁.