HELP.

I'm 17 years old and my boyfriend of 6 years and I just started having sex... I'm on birth control and we used a condom but when he took it off it flipped inside out and we're nervous that there's a possibility that his... stuff could've gone inside me... what's the actual likelihood of me getting pregnant from something like this? We're both terrified and Have no idea what to do.