It was pro military propaganda the same way Star Trek was pro communist propaganda.
It showed the military actually being the good guys, mostly, taking account of their mistakes, mostly. Working with others and being a positive force both for their country and for everyone else, mostly.
That is a very idealised US military that bares little resemblance to the real one, and it was great propaganda for the ideal that doesn’t exist, much like Star Trek.