Did you got Pregant from pre cum?

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

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