Am I risking pregnancy?!

So this guy and I were messing around the other day, and we didn't have full blown sex but we did other stuff and he came and some of it got really close to my vagina and it's my first time doing stuff like that. I'm a little worried that some of it got inside me...could I get pregnant?