Did you got Pregnant with precum?

If he pullout minutes before eyaculation and you Still got pregnant?

I thought precum happened right before eyaculation , not anytime during sex.