It's a bad quote. The goal is to make the right decisions. Not to have accountability. Punishment is in itself not productive.
Who decides what is “right”?
If you build a morality machine, those morals are not absolute truths, they are a result of some human weighted input. Any look into the wonderfully complex philosophy of ethics will showcase that “rightness” looks very different to various human thinkers.
This is a very good argument for why CS majors should be required to study the humanities. Ethics is not an engineering problem.