It doesn't matter if he pulled out, pre-cum has millions of sperm and it only takes one. Most of the time you will not even know if he pre-cums b/c it can happen throughout sex not just at the end. There is a chance of pregnancy, take a test if you are worried. Plus you will feel better to just know so you can stop worrying yourself. Good luck