I don' t know if would be classified as postpartum depression. I had an ectopic pregnancy in 1980, was very very ill. The physical recovery was not bad but the depression that set in afterward was horrible and lasted a long time.
I think significant depression is not that uncommon after major surgery. I heard of a lot of people having trouble with it following surgery.