In my opinion it depends. If there is good regulation AI can be benefitial to humanity.
1900-2000 we saw farming industrialisation and automation which is a good thing for humanity - more food.
We also saw that instead of producing atomic bombs, men can produce atomic energy, again very good for humanity - more power.
There are many examples. It depends how certain thing is used.