They have their differences, for sure, but metaphorically, yes, I believe you're right.

Well, maybe a slight difference in connotation: Pentimento involves merely covering up while palimpsest implies an active attempt to erase the past. It should be noted that neither is entirely successful in the long run.