Hi and welcome to Healthcare magic.Thank you for the query.
yes,it can be side effects of some durgs you are taking but also it can be caused by your kidney
disorder or heart disease
. So check function of these organs first. Other possible causes are venous insufficieny, infection or lyphedema. it should be evaluated by doppler ultrasound
Wish you good health. Regards