Apollo killed three astronauts. NASA learned some lessons from that and the rest of the program was safer, although still extremely risky.