Not so. The context is Israelite custom.
You have heard that it was said to those of old, ‘You shall not murder; and whoever murders will be liable to judgment.’ (21)
References are the Decalogue and Deuteronomy 16:18.
Note also that
those of old did not include the Romans.
You have heard that it was said, ‘You shall not commit adultery.’ (27)
See the Decalogue.
It was also said, ‘Whoever divorces his wife, let him give her a certificate of divorce.’ (31)
Reference is Deuteronomy 24:1.
Again you have heard that it was said to those of old, ‘You shall not swear falsely, but shall perform to the Lord what you have sworn.’ (33)
References are Leviticus 19:12, Numbers 30:2, and Deuteronomy 23:21.
Note also that the Lord was not the Romans’ deity.
You have heard that it was said, ‘An eye for an eye and a tooth for a tooth.’ (38)
References are Exodus 21:23-25, Leviticus 24:19-20, and Deuteronomy 19:21.