Absolutely. He graduated from the Naval Academy, which is quite an accomplishment in itself, then survived the fire on the USS Forrestal and requested to be immediately reassigned to the USS Oriskany to remain in combat despite being eligible after that horrible disaster to take a breather. This decision led to his eventual shoot-down and capture.
He could have been assigned to any cushy job in the navy he wished, due to the fact that his father was an Admiral and his grand father had been an Admiral. Because of his father being put in command of all naval forces while he was in NVA hands, they offered him an early release, he refused.
I do not like him as a politician and think it is far past time for him to retire, but I will never say anything against his military service, he survived torture that would have killed many men, some it did kill, and he still deals with the physical effects of that torture to this day.