Going out to war is not always a bad thing – so long as it is going “out” to war and not going “in” to war.
A plethora of Mitzvoth, connections, are iterated: from captives, burial, and found objects, to laws of mixology, intimacy, and immoral behavior. Laws of slavery, military camps, and economics, to marriage, fiscal responsibly, and divorce. Amalek (also symbolic of doubt) is the mortal the Jewish people. We always must remember Amalek and how they tried to squash our freedom as we left Egypt. We must erase any semblance of this darkness from the face of the light earth.