Loss of errection

Can someone still get pregnant if you were having intercourse successfully for several minutes, but the man looses his errection before he cums?