Should I obey an unjust law?
Hart separates the question of whether something is law from whether it is morally good. An unjust rule may be valid law, yet that leaves open, and indeed sharpens, the moral question of whether to obey it.
Calling a rule law does not settle whether it deserves obedience; one must still judge it by moral standards and may conclude it should be resisted.
Source: The Concept of Law