Condoms

Is the only way you can get pregnant using condoms is if it breaks or you notice a leak in it? Like if at the end of the moment you see that the condom hasn’t broken and the guy never stuck his penis in without on and none of the semen came out the top, then you can’t get pregnant?