John F. Kennedy was assigned command of the patrol torpedo boat PT-109 in the South Pacific