I mean yes, but this ruling is fhat they can’t do either. Since these regions are illegally occupied, their inhabitants have the right to resist said occupation and, therefore Israel doesn’t have the right to defend itself in the same way it would against an independent country.
That’s basically the non-aligned movement, which… Uh… Didn’t work out very well last time.