New to getting the pill

Court

I wanna get on the pill but I’m nervous about weight gain my question is , can I work out so I don’t gain the weight or it could happen regardless like it’s no way to escape it