Everything have their pros and cons. By just using it we will know if it's beneficial or not. It might be dangerous in some areas depending on what purpose it is intended to but Artificial Intelligence is part of the society's development as well blockchain in this technology era. This two can be helpful if we design to use in a good purposes and manner.
Computers are built by humans with a specific code. I think that it is impossible for a computer to have a super bad purpose and no one could stop it. Though, yes there is a lot of pro's and con's with AI.