Exactly right. The law has done its job once it leads people to Christ.
1 Timothy 1:
"8Now we know that the law is good, if one uses it legitimately. 9We realize that law is not enacted for the righteous, but for the lawless and rebellious, for the ungodly and sinful, for the unholy and profane, for killers of father or mother, for murderers, 10for the sexually immoral, for homosexuals, for slave traders and liars and perjurers, and for anyone else who is averse to sound teaching 11that agrees with the glorious gospel of the blessed God, with which I have been entrusted."
Galatians 3:
"19Why then was the law given? It was added because of transgressions, until the arrival of the seed to whom the promise referred. It was administered through angels by a mediator. 20A mediator is unnecessary, however, for only one party; but God is one.
21Is the law, then, opposed to the promises of God? Certainly not! For if a law had been given that could impart life, then righteousness would certainly have come from the law. 22But the Scripture pronounces all things confined by sin, so that by faith in Jesus Christ the promise might be given to those who believe.
23Before this faith came, we were held in custody under the law, locked up until faith should be revealed. 24So the law became our guardian to lead us to Christ, that we might be justified by faith. 25Now that faith has come, we are no longer under a guardian."
A guardian is only for the immature.