If an AI system is smart, could it figure out the moral way to behave?

From Stampy's Wiki