In this context, would you oppose the idea of a country having a military?
If you are asking me, if I think there is such a thing as a "just war": I don't know. I have read Saint Augustine[0] on this topic and am not convinced. I have not personally reached a conclusion on this matter.
[0] https://en.wikipedia.org/wiki/Augustine_of_Hippo#Just_war