Increasingly, algorithms are decision makers. Here's a recent talk, and a book forthcoming in October, about what we might mean by ethical decision making by algorithms.
And here's the forthcoming book:
The Ethical Algorithm: The Science of Socially Aware Algorithm Design Hardcover – November 1, 2019
by Michael Kearns (Author), Aaron Roth (Author)