Any tool - be it a hammer, a gun, or AI - can be used correctly...or horribly misused.
Unfortunately, power corrupts.
In the right applications, AI can be of great benefit to mankind. There are those who will use it for nefarious purposes, however. Society must be ever vigilant against such mis-use, and controls against it designed in from the outset.
I stand to make a lot of money from this technology. As do others in my space. The thing I continually remind people, however, is that we cannot allow something else (machine or otherwise) to think for us - lest we become slaves to it, and slaves to those who program inherent bias into it.
AI should be altruistic and should never take sides. Ever.