Even the Bible somewhat echoes your view. Romans 2:11-16 basically says that if you follow your conscience and the moral law of your heart, you won't be judged adversely by God, if he exists.