Maximizing the value of a Company’s stock

Can the goal of maximizing the value of a Company’s stock conflict with other goals, such as avoiding unethical or illegal behavior? In particular, do you thinksubjects like customer and employee safety, the environment and the general good of society fit in this...