It really depends. Ukraine right now for example is fighting for it’s existence and greatly appreciates our weapons. And many new systems may never be used other than as a deterrent for nations like China against getting any ideas about Tiwan. But US has definitely had useless and unjust wars, sometimes kinda colonial.