"The morality of human acts depends on three sources: the object chosen, either a true or apparent good; the intention of the subject who acts, that is, the purpose for which the subject performs the act; and the circumstances of he act, which include its consequences."


Compendium of the Catechism of the Catholic Church, #367.