The only method proven to have weight gain as a side effect is the depo shot.
The pill can cause water retention but it's temporary.
Otherwise, the number on the scale doesn't matter. Muscle weighs more than fat. And your body is going to change as you grow older, you're not going to look like a teenager forever. Focus more on how you feel, not how much you weigh.