Yes, medications cause weight gain in many different ways, including increasing your appetite, retaining fluids and bloat, or intering with normal routines that eat up calories.
Many medications can cause weight gain. Its a possibility. Which ones are you taking?