Exactly.

Trump at a speaking event had criticized political leaders who send soldiers to fight wars, but didn't serve in the military. One of the panelists said "Well, John McCain served."
Trump responded "I like soldiers who don't get captured."
To which everyone present laughed.

I saw that as a shot at John McCain, not at veterans in general.
It was a comment aimed very specifically at those who send soldiers to fight combined with being a veteran. And arguably only to McCain's specific questionable judgement, combining those two categories.