Of course they are the works of the Law. There are no good works outside the works of the Law.
But they have to have read enough of scripture to know what the laws of God really are. Unfortunately it seems that Catholics get their scripture from the RCC mostly and it appears to me that very few of them read other than what then what they get in mass.