Somewhat confusing the matter is that many fields have ethics boards that do enforce a written code of ethics and some of those punishments can have some effect under the law. For example, a doctor can lose his license to practice as can a lawyer. However, those boards aren’t operated by the government and though their rules more closely resemble laws in may ways, they are still considered ethical issues.