moon
Satire for Sanity
Yes, the world order and international treaty cannon subsequent to 1945 did not stop all wars and has not been implemented equitably.
On the flip side, on balance it has prevented world wide conflagrations the world experienced from the 30 years war though the Napoleonic era through 1945.
Under modern international law war is, in fact, illegal. The UN also provides the means by which transgressors may be punished. Like any legal system, however, the shysters of the powerful corrupt justice.