Fact 1: Sperm are deposited in the vagina during sexual intercourse. 
Fact 2: Erection is necessary to carry the ejaculate containing the sperm into the vagina.
Sperm is deposited after ejaculate is carried during sexual intercourse.