Are cats smart enough to be ashamed of something bad they did?

A book recommendation I make in cat threads is The Carachter of Cats by Stephen Budianski. Pro-cat, but very down to earth and science based.

My guess is that cats do feel some sort of shame–like emotion for some things, but only if they’re caught.