Pregnancy scare

I had anal sex with my boyfriend (he didnt cum) and I've jerked him off. If that's all that we have done, could I be pregnant? Should I take a test?