John Kennedy actually said...
The first is the right of every nation to govern itself, to be free from outside dictation and coercion, to mold its own economy and society in any fashion consistent with the will of the people.
Context
Remarks at the University of Costa Rica in San Jose
03/19/1963