I hope this answers your question.
For when the Gentiles, who have not the law, do by nature those things that are of the law; these having not the law are a law to themselves:
Who shew the work of the law written in their hearts, their conscience bearing witness to them, and their thoughts between themselves accusing, or also defending one another,[…]"
Romans 2:14-15.
"But he that knew not, and did things worthy of stripes, shall be beaten with few stripes. And unto whomsoever much is given, of him much shall be required: and to whom they have committed much, of him they will demand the more."
Luke 12:48.