There will never be a perfectly "just" war any more than there will be a crime-free society.
But some wars are juster than others.
Of course, which ones those are depend on whom you ask.
Furthermore, some populations are far more anguished by injustice in war than others.
Assuming that counts for anything - and I think it does.