The first line reading "And miles to go before I sleep" is probably intended literally. The speaker is traveling some distance in a horse-drawn sleigh and still have some distance to cover before he gets home to a warm bed. The repetition of the line suggests that it occurs to the speaker that he still has a long life ahead of him with many things to do before he will sleep the sleep of death. Some critics have suggested that the whole poem contains a hidden death wish, but the fact that the speaker reflects that he is going to die some day does not necessarily mean that he wants to die now or at any time in the future. Most of us, at one time or another, have been struck by the realization that we are going to die some day. We may even wonder if there isn't some big calendar up in the sky with our name written in on one of the squares. The fact that the speaker, presumably Frost himself, says that he has, figuratively, miles to go before he dies would seem to suggest that he is not expressing a "death wish" but, on the contrary, assuring himself that he has many more years of life ahead of him.
Robert Frost wrote "Stopping by Woods on a Snowy Evening" around 1921. He died in 1963, so he had about forty-two years of life ahead of him on that winter night when he stopped to admire the beautiful winter scene. During those years he became America's best-loved poet. In 1961 he was honored by being invited to read one of his poems at John F. Kennedy's presidential inauguration.