Yes. It's called the natural law. And sodomy is, ahem, unnatural.
This would never have happened if the abuses after Vatican II had not effectively destroyed the Catholic Church in Canada from within. The Church is now weak, emaciated, and her sons and daughters especially in Quebec have abandoned Her in droves. This legislation would never have had a hope if the Catholic Church in Canada hadn't sold its birthright for a mess of pottage.