Robotics rule #1: A robot may not injure a human being or, through inaction, allow a human being to come to harm.
(https://en.wikipedia.org/wiki/Three_Laws_of_Robotics#.22The_...)
Also see this discussion: https://en.wikipedia.org/wiki/Ethics_of_artificial_intellige...