Nazi Germany is a good example of a morally corrupt society. But no one ever tries to decide an ethical issue by doing a survey. Further, the lack of social consensus on many issues makes it impossible to equate ethics with whatever society accepts. Some people accept abortion but many others do not. If being ethical were doing whatever society accepts, one would have to find an agreement on issues which does not, in fact, exist.
Ethics is two things.
First, ethics refers to well-based standards of right and wrong that prescribe what human rights ought to do, usually in terms rights, Ethics, for example, refers to those standards that impose the reasonable obligations to refrain from rape, stealing, murder, assault, slander, and fraud. Ethical standards also include those that enjoin virtues of honesty, compassion, and loyalty. And, ethical standards include standards relating to rights, such as the right to life, the right to freedom from injury, and the right to privacy. Such standards are adequate standards of ethics because they are supported by consistent and well-founded reasons. Secondly, ethics refers to the study and development of one's ethical standards.