The object, the intention, and the circumstances make up the three “sources” of the morality of human acts.
The object chosen morally specifies the act of willing accordingly as reason recognizes and judges it good or evil.
“An evil action cannot be justified by reference to a good intention.”1 The end does not justify the means.
Cf. St. Thomas Aquinas, Dec. praec. 6.