100%. If AI makes human labor obsolete, then what incentive is there for the powers that be to give a shit about the laborers?
At that point, anyone not within the AI inner circle is simply a drain on natural resources at best, and a source of resistance and sabotage at worst.
Those in control could choose to be generous and pacify the masses with UBI.
Or they could choose other, more brutal methods.
Based on historical behavior, I can't really picture them deciding to be generous out of the goodness of their hearts.
There are many cases in history of benevolent dictators. Problem is that with dictatorial succession rules, you cannot guarantee that the next in line will also be benevolent.