Depends. Is it enforcable by the government, under the threat of violence? Then it's a law, not a duty.