It's not only the distance that counts, but also the fitness and health of the person walking. Travelling long distances, however, is not advised. But believers must decide for themselves. If they can drive or walk without become tired, fair enough, but if not, then better to stay at home. The answer is No.
Salvation is a free gift.
No man or woman can earn salvation. Keeping a particular commandment will, in itself, not earn salvation any more than being honest will obliterate past lies, or being thrifty cancel existing debts. Persistent sin can, however, jeopardise salvation - even though faith is verbally expressed. Faith, to be acceptable must be followed by obedience, else it is dead. The book of James in chapter 2 makes this point abundantly clear.