Corporate code of ethics

Do you think a strong corporate code of ethics could have helped?

How would you go about creating an ethics program or framework? Share any frameworks in your current or past place of employment.