Can I Get Pregnant from Masturbating?
Masturbation is the stimulation or manipulation of one's own genitals. For pregnancy to occur, sperm contained in ejaculatory fluids needs to come into contact with a woman’s vagina. Therefore, the scenario you described is not going to get your pregnant.
FX would like to encourage you to learn about how pregnancy happens, safer sex and sexual readiness. It is important that you are prepared to protect yourself against unwanted pregnancies and the transmission of sexually transmitted infections.