Welcome to HCM, I have gone through you query and understood your concerns, as soon as the penis is erect, before the man ejaculates, a liquid called pre-eyaculate is produced. This liquid can contain thousands of sperm, men have no control over the production of this liquid ( one ejaculation can contain more than 300 million sperm)
The woman egg can be fertilised by sperm contained in semem or
pre-ejaculate.
That mean it's possible for you to get pregnant without having sexual intercourse if, for example yor partner ejaculates near your vagina, if you or your partner have semen or pre-ejaculate on your fingers and touch your vagina or if your partner erect penis comes into contact with your body near your vagina.
Although the risk of getting pregnant in this way is very low because sperm can only live for a short time outside of the body, if you are not planning a
pregnancy,it's important to know that it's possible to get pregnant in this way.
Anyway I kindly suggest if you have doubts you can take a home pregnancy test
Please kindly rate if my advise has been helpful
Wishing you a good health
Dr Tania Portelles-Driggs