No because it wasn't really supposed to be a war but it ended up being one anyways
Hammurabi's Code set laws in the Babylonian empire that applied to everyone. Including Hammurabi himself. This was important because it had never been done before, at least not at such a bit level. Hammurabi's Code inspired many countries to do the same, which led to monarchs being less powerful and was another step in the direction of democracy.
Hope this helps! Please let me know if I'm wrong :)