Hi there ~
I understand your concerns. However there is a slight risk of you becoming pregnant even with your partner ejaculating outside your genitalia and then there was penetration after ejaculation. I believe this risk is due to the chances of the prejaculate fluid or the post ejaculate fluid containing spermatazoa. It may be safe to take the morning-after pill if you are within that period, otherwise you might need to wait till your next scheduled period to see if you have one and if you do not, then take a urine pregnancy
test. Please see an OBGYN
if you are pregnant and do not want to have the baby. I hope this helps.
Take care and have a lovely day!