Morally, no. Legally, yes.
Much like the illegalization of marijuana, I can both be against a law and understand that while breaking the law I may face consequences.