What if he pulls out then finishes?

Can you still get pregnant if the semen is on your vagina? Can it like go in? And how long can semen last after he cums?