The words are related. Both come from the Latin pudere, to make or be ashamed.