Ability to get pregnant

How deep does a penis have to go into your vagina and ejaculate to really have a chance of pregnancy? Or does the depth not really matter? I know the depth of a vagina ranges from woman to woman (as does penis size).