Causing someone shame is a form of damage for which compensation can be demanded. This is בושת. However, פגם is different. פגם diminishes the value of the individual in the eyes of others.
Source Sheet