Here is one sentence: His display of foulness deserved severe punishment.
Here is another sentence: He understood the foulness of sin.
Does the term foulness mean the same thing in both these sentences?
the same meaning