By April 1954, when Kennedy stood up on the Senate floor to challenge the Eisenhower administration’s support for the doomed French war in Vietnam, he had become an informed critic of Western imperialism.
For a different perspective on this, see Seymour Hersh's article "DOES IT TAKE A WAR" (https://seymourhersh.substack.com/p/does-it-take-a-war) where he claims that Kennedy ramped up the Vietnamese war on purpose in order to be a "Great President".