One has not only a legal but a moral responsibility to obey just laws. Conversely, one has a moral responsibility to disobey unjust laws. I would agree with St. Augustine that ' an unjust law is no law at all.
Dr. Martin Luther King, Jr. (2011). “Why We Can't Wait”, p.60, Beacon Press