More apt candidates for the inspiration of Star Trek would be the 1957-1962 western show "Wagon Train" and the 1956 movie "Forbidden Planet". Roddenberry pitched Star Trek as "Wagon Train to the stars", and if you've ever watched "Forbidden Planet" you'll be able to pick up all sorts of parallels and similarities from interpersonal dynamics of the crew to interaction with the planet dwellers and so forth. You may even notice similarities between the movie and the 3rd season episode "Requiem for Methuselah", as both are loose adaptations of Shakespeare's "The Tempest". Of course, these are entertainment properties, where he also had his own life experience from which to draw inspiration. He was a B-17 pilot during World War 2, and later worked in policing. Although he was an Army Air Force pilot (did not serve aboard ships), he drew upon the real-world U.S. Navy (specifically battleships and aircraft carriers) as inspiration for the operation of and life aboard a starship.