Can you still lose a lot of weight without a gym membership by just eating healthy?

So I’m trying to lose at least 40 pounds by June 16th I’m the maid of honor in my brothers wedding 👰🏽 I don’t really have time to go to the gym but I’ve been eating somewhat healthy is it possible to tone up and lose that much weight without going to the gym ?