More likely, our inventions in technology will likely kill us once there is an intelligence explosion in AI (AGI --> ASI). If you have the time, read Our Final Invention
It's a chilling read into what could very well come to pass.
BTW, the most disturbing thing in the book is the far reaching look at an ASI that has access to nanotechnology in the next century or so. We might become sacks of atoms for the ASI to re-assemble for its energy needs.