How likely are you to get pregnant if he was only inside for a few seconds?

Depends on "what" second. If any fluid from the penis was present (pre-cum/clear fluid or cum/whitish) then pregnancy is possible.