Is this caterpillar dead?

St

So I went to Lowe's yesterday and picked up some clearance plants and while I was trimming this one, I noticed a caterpillar. My boyfriend touched it and it didn't move. I told him I think it's ready to become a cocoon. But I've never garden before nor know about wildlife. Does anyone else have insight to this?