It is the ancestral version of nuclear deterrant and mutually assured destruction.
Countries always had militaries, were “prepared for war”, and yet there was no time in human history where someone, somewhere, was not at war.
Even with nuclear weapons, the best you can say is that it led to numerous proxy wars, instead of direct confrontations.
It is therefore safe to say, that this concept has never worked.