Can, and Will, are two different words with huge differences in their meanings. Hence, even if AI "can" replace humans, it may not. At least now, AI is very much controllable by the creators. So, unless those who control AI decide to do something bad, AI cannot replace humans even if it has the capability to do so.