You should be fine if he pulled out. Now we're you on the pill already? Because if you were and he did finish inside there should be no problem. I was on the pill and my bf came inside a lot of times and nothing ever happened.
No of course if he pulled it out before cum