True. The specific variable is economic relevance.
If humans are unemployable, there's either starvation or UBI. If there's enough starvation, people are probably going to risk the automated weapons.
So, UBI is mostly orthogonal, and related to how much death whoever is in charge can stomach.