If you have a solid foundation of real principle in your life, instead of a wishy-washy whatever approach, yes, you can say what you are required to do by your foundational principles.
Of course, if you don't have any... you could do anything and rationalize it later.
/johnny
If you actually have any real principles and responsibility in your life, you work to change bad laws and not just break them because they don’t fit you....