This is what people like Elon Musk and Stephen Hawking are trying to say. We need to be cautious not soon but from this very moment.
AI is nothing without the data that humans generate, so it all depends on what data we, humans, feed to AI. If we feed good data, AI will help us in the long run, otherwise an apocalypse is near.