No man is saved by the Law because we all fall short of it. We have all broken God’s commandments at some point.
However, this does not mean that all under the Law are condemned to destruction. No way. Was Moses perfect? No. Was he condemned to destruction? No. All those who were faithful under the Law and those who only had the law written in their hearts (conscience) can be saved because of the death of our messiah who died for all mankind and for all time.
Romans 2:11-13
11 For there is no partiality with God.
12 For all who have sinned without the Law will also perish without the Law, and all who have sinned under the Law will be judged by the Law;
13 for it is not the hearers of the Law who are just before God, but the doers of the Law will be justified.…
Notice that it doesn’t say that you have to be perfect under the law or sinless, rather that if you were or are under the Law, then you must be a doer of the Law. And we already know that Christ died for mankind, so we are made perfect by him. Our shortfall is covered by him so to speak.
If Christ did not die for us, then there would be no salvation because there is no one perfect. We have all sinned and fall short of God’s glory. Thus, our souls would die if it were not for the free gift of salvation.
So those who were doers of the Law in times past are also saved by the grace of God.