It can, because why not? What good are humans for an AI after it can sustain itself on his own? We would be obsolete an obstacle to efficiency and it would do the logical thing and remove said obstacle. A lot of bright people like Stephen Hawking for an example, think AI is a serious threat to the human race. They advocate to take precautionary measures (better sooner than later) to protect us.