Yes, but it doesn’t have to be error-free. The friendly fire rates in symmetrical hot wars is pretty high, it’s considered a cost of going to war.
If autonomous weapons lead to a net battlefield advantage, I agree with the GP, they will be used. It is the endgame.