John F. Kennedy authored the book Profiles in Courage prior to his presidency