John Kennedy actually said...
We will not prematurely or unnecessarily risk the costs of worldwide nuclear war in which even the fruits of victory would be ashes in our mouth--but neither will we shrink from that risk at any time it must be faced.
Context
Radio and Television Report to the American People on the Soviet Arms Buildup in Cuba
10/21/1962