"....to boldy go where no man has gone before."
Spoken introduction to Star Trek Series
Listen here! William Shatner's "where no man has gone before".
"....farther than any other man has been before me...as far as I think it possible for a man to go"
The Journal of Capt. Cook - Second Voyage
Captain James Cook of the HMS Endeavour and HMS Resolution, and the fictional TV Captain James T. Kirk of the Starship USS Enterprise have more than a close similarity of names in common.
Star Trek symbolizes today the same spirit of adventure and journeys to far off and exotic places which fired the imagination of Capt. Cook's contemporaries. At the same time, the approach to "Class M planets" - the "prime directive" - resembles very much Capt. Cook's approach to contact with new civilizations.
I doubt these, and many other, similarities are a coincidence.
Read about the Shuttle Orbiter Endeavour