On a much less optimistic dark humor note, this is the same argument in If Anyone Builds It, Everyone Dies about a superintelligent AI emerging and being a threat to humans.
https://en.wikipedia.org/wiki/If_Anyone_Builds_It,_Everyone_...