This is talked about far too little. The ethics of all software are important, but machine learning especially has a feedback loop that can be very nefarious if trained on biased data or incorrectly implemented, validated, or interpreted.
Furthermore, you raise a good point. Are there some things we shouldn’t let algorithms decide? Like prison sentences and years of people’s lives?