Yahweh God’s Law has three components, command, statute and judgment. Each part must be considered when you read the word Law in scripture.
Romans 10:4 “For Christ is the end of the judgment of death (law) for righteousness to every one that believes”.
This is simple logic as the phrase “for righteousness” requires this understanding. God did not destroy His morals. Without Yahweh’s righteous Law there is no new covenant.