Wars of aggression, i.e. war of conquest intended to change borders and subjugate a population, was considered by Nuremberg trials to be the supreme international crime. That's what happened in 2014 when Putin rolled tanks into Ukraine.
A cynical, but not incorrect, person might suggest: Given that the things we've invented to prevent wars of aggression have all failed, we have to consider the defect. Is it the institutions? Or is it mankind? Are we doomed to actually go through with a third world war no matter what?
And the wars kept getting deadlier as technology increased. During WW2, about 3% of the human species was killed using conventional weapons. But then in 1945 everything changed. Since we demonstrated the unwinnable situation that war against a nuclear power is, there have been exactly 0 unrestrained conflicts between nations with nuclear weapons.
So this formula is not so simple. Nukes are a catastrophe waiting to happen, but they are also the reason we've lived in this bubble of relative safety that is the only reality most of us have ever known. The promises and formalities of nations (as an optimist might like to declare the UN the reason such wars ended) are nothing new. The UN is a direct descendent of the League of Nations that formed following WW1 with the goal of ending such war, and there were similar organizations prior to the League. Nothing worked, until nukes.
Without nukes it seems likely that we would have almost certainly have long since seen WW3 and perhaps even more of its kin. One can only imagine what this would have translated to in terms of impact and our lives.
[1] - https://en.wikipedia.org/wiki/List_of_wars%3A_1500%E2%80%931...
https://en.m.wikipedia.org/wiki/Nuclear_disarmament#/media/F...