How might having a code of conduct help an employee make decisions when faced with an ethical situation?

How might having a code of conduct help an employee make decisions when faced with an ethical situation?