Birth control weight

So I know that there’s a weight gain side effect with birth control but I was wondering if once you get off of birth control, do you lose all the weight you gain or do you also have to put some work in in order to lose it. I have been on birth control for about two years and I have definitely seen a difference in my weight.