God: "I looked for someone to take a stand for me, and stand in the gap" (Ezekiel 22:30)
Everybody who is created comes into the world with a sense of right and wrong. That is the law written in the hearts. In addition to that, God has put the conscience and the conscience is a warning device that sounds off when we violate that law, or affirms us when we obey it. The conscience is not that law; it is merely the warning device.
Doctrine matters. What you believe about God, the gospel, the nature of man, and every major truth addressed in Scripture filters down to every area of your life. You and I will never rise above our view of God and our understanding of His Word.