The following increases the risk of edema: Being pregnant. Taking certain medicines. Having a long-lasting illness, such as congestive heart failure or liver or kidney disease. Having surgery that involves a lymph node.