> In moral philosophy, consequentialism [...] holds that the consequences of one's conduct are the ultimate basis for judgement about the rightness or wrongness of that conduct. Thus, from a consequentialist standpoint, a morally right act (including omission from acting) is one that will produce a good outcome.
https://en.wikipedia.org/wiki/Consequentialism