That was certainly the case on The Walking Dead with the various surviving communities. But we should hope the actual world would operate a little more lawfully than a post-apocalyptic free for all.
So Russia's invasion of Ukraine will be legal if Russia wins? I doubt most people in the West will see it that way. Might makes right has never been a good basis for law.