The theory is such that you change your attitudes to match your behavior. If you find yourself acting or having acted in a way that goes against a belief you held, it is easier to modify your attitude to be in line with your behavior rather than be in conflict. The cliche phrase for this is "justify your actions".