In the first few years we can control them as it advance they will start to control us. Once artificial intelligence start programming/improving another artificial intelligence that is the start that we are losing control ever them.
Advance AI should not be allowed to connect to internet and should only reside on virtual worlds and harvest what they created there for our own use. AI is very dangerous to humans because they can be more intelligent than us.