Nope. But close. Will Smith in "I am Legend". Good flic BTW
http://www.denofgeek.com/movies/star-trek/10901/star-trek-the-original-series-episode-8-review
In science fiction terms it is I Am Legend mixed with Logan’s Run with a dash of Lord Of The Flies for good measure.