Sure. The analogy to computers is not a perfect one, because brains don't function like modern computer operating systems. My objection to pain is not that it is uninformative, it's that it's overwhelmingly unpleasant even when we do not wish it to be.
Yes, it can inflict more harm by forcing you into suboptimal decisions. Shame can be alike too. So, I vote for insect-like shame and pain processing, I've mentioned in grandparent.
This is our monthly thread for collecting these little gems and pearls of wisdom, rationality-related quotes you've seen recently, or had stored in your quotesfile for ages, and which might be handy to link to in one of our discussions.