God definitely had to explain just enough to Adam and man before the flood for His final White Throne judgment of those men to be just. So yes, Adam and Eve AND mankind knew what was required by God for restoration and forgiveness. Cain and Able were sacrificing to God and obviously taught their offspring.