A centrifugal pump imparts energy into a fluid in the form of velocity. The shape of the pump then turns that velocity into pressure head. The pump puts energy into the liquid and the liquid carries it away. If there is not enough flow, the temperature of the pump will rise and eventually damage to the pump can occur. However, centrifugal pumps have a characteristic curve that ends at shutoff head. If deadheaded, pressure in the discharge will rise to shutoff head and the pump will sit there and thrash. You can run a centrifugal pump deadheaded; just maybe not for very long depending on the pump and the fluid its pumping.
Unlike a centrifugal pumps, positive displacement pumps have no shutoff head. They deliver constant flow regardless of head. They should never be deadheaded. They will continue to try and produce flow until something breaks. That's why positive displacement pumps usually have integral pressure relief or some type of relief valve setup in the discharge line.
I hope this helps.