St. Augustine: "an unjust law is no law at all."
John Marshall, in Marbury v. Madison: "a law repugnant to the constitution is void."
This is actually a fairly well established principle in common law. So, yes.