It seems to me, in some Christian circles, the moment you mention an Old Testament commandment the assumption is that a works based teaching is being applied. But this is not the case. Yes, we cannot earn salvation, but once our hearts experience conversion we walk a different path to the world. The old is gone, the new has come.
In following Jesus & trusting in Him we begin a walk in holiness. In a sense we move on from the cross (the atonement) to begin a life of faith & obedience being led by the Spirit. Christ came not to abolish the law but to fulfil it. Matt 5:17-20. So we begin to grow in godliness & holiness overshadowed by Grace.The Ten Commandments take on a new meaning, not works based but Word based.
The Ten Commandments are deeply embedded in the New Testament writings, this doesn’t equate to a works based belief, it is still finished & still amazing grace all the way home.