Not exactly. Allow me to make some clarifying comments.
No, there were no 10 commandments for Adam and the woman. There was only one.
Gen 2-
16 And the LORD God commanded the man, “You are free to eat from any tree in the garden;
17 but you must not eat from the tree of the knowledge of good and evil, for when you eat from it you will certainly die.”
18 The LORD God said, “It is not good for the man to be alone. I will make a helper suitable for him.”
There was only 1 tree which Adam was commanded not to eat from. In the original Hebrew, v.17 isn't translated correctly. The last phrase "for when you eat from it you will certainly die" is literally, "for when you eat from it, dying, you wlll dertainly die".
There are 2 deaths mentioned in v.17, which no English translation shows. Many English translations also have "on the DAY that you eat from it". Well, we know that Adam didn't fall to the ground, and neither did Eve when they ate of that tree. So there is more than physical death here. What did die was their human spirit, leaving them unable to have fellowship with God. In John 4:24, that is what Jesus told the Samaritan woman about what is required to worship God: spirit and truth. He was referring to the human spirit, and worshiping according to Scripture, which is TRUTH.
So, in the literal phrase, "dying" is a reference to the process of physical death, which occurs as one ages. And that is when both Adam and the woman began to die physically. But WHEN they ate of the forbidden fruit, their human spirits died.
We also note from v.19 that Adam was alone when God gave him the command to not eat of that tree. So we conclude that when God created the woman for Adam, he was responsible for teaching her what God commanded of him.
Unfortunately, the text shows that she apparently didn't listen very well, since she was so easily deceived by Satan's lie about the tree. And she mentioned "touching" the tree, which wasn't part of the prohibition.
This ignores the fact that God is omniscient. He knows everything. That means before He created Adam and Eve they would sin and need a solution, which IS the gospel promise of salvation. God doesn't have to "seek" for anything. He knows where everything is.
None of these verses clearly states the gospel promise. So consider these verses regarding how to be saved/redeemed.
Salvation:
Mark 16:16 " He who has believed and has been baptized shall be saved; but he who has disbelieved shall be condemned.
Luke 8:12 "Those beside the road are those who have heard; then the devil comes and takes away the word from their heart, so that they will not believe and be saved.
Acts 4:12 "And there is salvation in no one else; for there is no other name under heaven that has been given among men by which we must be saved."
Acts 11:14 and he will speak words to you by which you will be saved, you and all your household.'
Acts 16:31 They said, “Believe in the Lord Jesus, and you will be saved, you and your household."
Rom 10:9, 10 9 that if you confess with your mouth Jesus as Lord, and believe in your heart that God raised Him from the dead, you will be saved; 10 for with the heart a person believes, resulting in righteousness, and with the mouth he confesses, resulting in salvation.
Rom 1:16 For I am not ashamed of the gospel, for it is the power of God for salvation to everyone who believes, to the Jew first and also to the Greek.
1 Cor 1:21 - For since in the wisdom of God the world through its wisdom did not know him, God was pleased through the foolishness of what was preached to save those who believe.
Eph 2:8 For by grace you have been saved through faith; and that not of yourselves, it is the gift of God;
2 Tim 3:15 and that from childhood you have known the sacred writings which are able to give you the wisdom that leads to salvation through faith which is in Christ Jesus.
1 Peter 1:5 who are protected by the power of God through faith for a salvation ready to be revealed in the last time.
1 Peter 1:9 obtaining as the outcome of your faith the salvation of your souls.
2 Thess 2:13 But we should always give thanks to God for you, brethren beloved by the Lord, because God has chosen you from the beginning for salvation through sanctification by the Spirit and faith in the truth.
Eternal Life:
John 3:15-16 15 so that whoever believes will in Him have eternal life. 16 "For God so loved the world, that He gave His only begotten Son, that whoever believes in Him shall not perish, but have eternal life.
John 3:36 "He who believes in the Son has eternal life; but he who does not obey the Son will not see life, but the wrath of God abides on him."
John 5:24 "Truly, truly, I say to you, he who hears My word, and believes Him who sent Me, has eternal life, and does not come into judgment, but has passed out of death into life.
John 6:40 "For this is the will of My Father, that everyone who beholds the Son and believes in Him will have eternal life, and I Myself will raise him up on the last day."
John 6:47 "Truly, truly, I say to you, he who believes has eternal life.
Rom 6:23 For the wages of sin is death, but the free gift of God is eternal life in Christ Jesus our Lord
1 Tim 1:16 Yet for this reason I found mercy, so that in me as the foremost, Jesus Christ might demonstrate His perfect patience as an example for those who would believe in Him for eternal life.
Gal 3:22 But the Scripture has shut up everyone under sin, so that the promise by faith in Jesus Christ might be given to those who believe.
1 John 5:13 These things I have written to you who believe in the name of the Son of God, so that you may know that you have eternal life.
None of this will save anyone, either OT or NT. Salvation is by grace through faith, not of works. Eph 2:8,9
This is a misunderstanding of Scripture.
Romans 4 explains in detail how a person "is of Abraham". It is by faith in Christ.