Actually, you need to lay on your back with your legs up for about an hour to let the sperm swim deeper. The sperm can live in your vagina for up to two days.
Generally when you have an orgasm. There are exceptions, there is some discharge prior to orgasm, which is one of the reasons that the withdrawal method is not reliable as a method of contraception....