Catholic teaching:

"The Church teaches that abortion or euthanasia is a grave sin. The Encyclical Letter Evangelium vitae, with reference to judicial decisions or civil laws that authorize or promote abortion or euthanasia, states that there is a "grave and clear obligation to oppose them by conscientious objection. [...] In the case of an intrinsically unjust law, such as a law permitting abortion or euthanasia, it is therefore never licit to obey it, or to 'take part in a propaganda campaign in favour of such a law or vote for it'". Christians have a "grave obligation of conscience not to cooperate formally in practices which, even if permitted by civil legislation, are contrary to God’s law. Indeed, from the moral standpoint, it is never licit to cooperate formally in evil. [...] This cooperation can never be justified either by invoking respect for the freedom of others or by appealing to the fact that civil law permits it or requires it." "

(Cardinal Joseph Ratzinger)