Machines that can think for themselves attached to a global brain with the ability to self replicate? Yeah, we're making that happen.
We have seen the future, and it's starting to look a lot like Skynet.
That self-aware computer system—yes, the one that tries to exterminate the human race in the Terminator movies (and one TV show)—is a potent symbol of Frankensteinian hubris. It is mirrored in the Singularity, the idea that technological progress will soon hit exponential growth, leading to self-aware robots and artificial intelligence that seize control of their own destiny, rendering humans irrelevant if not extinct. (Unless people go transhuman first, although that's another article entirely.)
The Singularity may never happen. Artificial intelligence—long predicted, never realized—may be much harder to achieve than we think. An emerging computer consciousness might pass through a period of infancy, during which humanity might be able to take countermeasures of one sort or another. Self-aware robots might turn out to be benevolent, or even completely uninterested in humanity. It's impossible to predict.