Nope, not to the obtaining of salvation if that's your point. No one can "keep them from the heart". Christ satisfied everything necessary for salvation on the behalf of those whom He chose to salvation - for those He places under the New Covenant. Salvation is a completely free gift to them given from/by an exceeding gracious and merciful God through Jesus Christ, who alone, is Savior. Nothing whatsoever is required from them in order to become or to remain saved. The Old Covenant, the one replaced, instead had to be satisfied/maintained to the required level by the works of those under it.
[
Heb 7:11-12,
18-19,
22,
25 KJV]
11 If therefore perfection were by the Levitical priesthood, (for under it the people received the law,) what further need [was there] that another priest should rise after the order of Melchisedec, and not be called after the order of Aaron?
12
For the priesthood being changed, there is made of necessity a change also of the law. ...
18
For there is verily a disannulling of the commandment going before for the weakness and unprofitableness thereof.
19
For the law made nothing perfect, but the bringing in of a better hope [did]; by the which we draw nigh unto God. ...
22 By so much was Jesus made a surety of a better testament. ...
25
Wherefore he is able also to save them to the uttermost that come unto God by him, seeing he ever liveth to make intercession for them.
God completely satisfied all of the stipulations of the New Covenant for salvation, with man only a recipient. It is not a question of where the law is written or of what that law is, but rather, if there are any at all that must be satisfied to become or remain saved; that is, all requirements for salvation have been completely eliminated by Christ's sacrifice alone - and that is what makes it by grace. The purpose of the writing of the New Covenant into the heart, is to make those who become saved to be able to discern the basis of their salvation, that they have been saved by God's grace alone through Christ and to edify others with it.
[
Heb 8:9-13 KJV]
9
Not according to the covenant that I made with their fathers in the day when I took them by the hand to lead them out of the land of Egypt; because they continued not in my covenant, and I regarded them not, saith the Lord.
10
For this [is] the covenant that I will make with the house of Israel after those days, saith the Lord; I will put my laws into their mind, and write them in their hearts: and I will be to them a God, and they shall be to me a people:
11 And they shall not teach every man his neighbour, and every man his brother, saying, Know the Lord: for all shall know me, from the least to the greatest.
12
For I will be merciful to their unrighteousness, and
their sins and their iniquities will I remember no more.
13 In that he saith, A new [covenant], he
hath made the first old. Now that which decayeth and waxeth old [is] ready to vanish away.
[
Heb 9:14-15,
28 KJV]
14
How much more shall the blood of Christ, who through the eternal Spirit offered himself without spot to God, purge your conscience from dead works to serve the living God?
15 And for this cause
he is the mediator of the new testament, that by means of death, for the redemption of the transgressions [that were] under the first testament, they which are called might receive the promise of eternal inheritance. ...
28
So Christ was once offered to bear the sins of many; and unto them that look for him shall he appear the second time without sin unto salvation.
[
Heb 10:10,
12,
14,
16-18 KJV]
10 By the which will
we are sanctified through the offering of the body of Jesus Christ once [for all]. ...
12 But this man, after
he had offered one sacrifice for sins for ever, sat down on the right hand of God; ...
14
For by one offering he hath perfected for ever them that are sanctified. ...
16
This [is] the covenant that
I will make with them after those days, saith the Lord,
I will put my laws into their hearts, and in their minds
will I write them;
17
And their sins and iniquities will I remember no more.
18 Now where remission of these [is, there is] no more offering for sin.
Which law(s) does God place into the heart and mind? The law of the Spirit of life in Christ Jesus, along with laws of mercy and grace that proceed from it. But when He does so, by Him placing them under it, they are saved - so that which is written into the heart aren't the Ten Commandments.
[
Rom 8:2 KJV] 2
For the law of the Spirit of life in Christ Jesus hath made me free from the law of sin and death.