Is it possible to get pregnant when your fertile but if he didn’t get to climax?

I had unprotected sex with my partner and didn’t use any protection but he didn’t get to cum. I heard that You can still get pregnant but I don’t know if that’s true.