Stopping doing wars doesn't mean not having a military capable of wars. It means not starting them. The US hasn't been involved in justified military action since the 40s.