Pull out???

I’m kinda inexperienced when it comes to this kinda stuff. My partner and I were using a condom when it broke on us, but we continued. however we ended up pulling out way before he came but I am still worried because like I said, I am inexperienced. I won’t get pregnant, right?