There is more to it though.
The Law did not create Grace. Grace was always there since the Fall of Adam and Eve. Like a good school teacher, the Law shows us what was already in existence by magnifying the nature of something through a series of laws.
The Law then shows the need for a Saviour by magnification but that need was established in Genesis by Adam and then through Abraham.
We need to be clothed in God’s Righteousness or we are condemned because HE is Holy and Righteous and that demands everything around Him to be the same. Like two magnets that oppose each, God’s righteousness pushes away unrighteousness.