Sure. It doesn't have to be all at once, though.
One month, add in the GLP-1. Start your weight loss. Once you're comfortable with the meds, your regular pinning, dealt with side effects, then, start modifying what you eat rather than just how much of it. Once you've got your diet down, then start slowly adding in resistance training. Ramp up as you feel comfortable doing.
You don't even need to go to the gym or build out a fancy home gym - just a pair of adjustable dumbbells and some short fully body workouts will provide a lot of stimulus, particularly if you're starting from no training.
I went from eating like shit and constantly putting on weight while being sedentary to on tirz, TRT, radically changing my diet, and lifting 5 days a week in a less than two month span. It's not something I ever would have been able to do prior, and I think the dopamine related changes in my brain from tirz and then later reta are directly related to what allowed me to make that shift. And I'm not saying that everyone needs to go as far as I did, or that it'll make it doable for everyone. But it might also be something worth trying again now that you potentially have a little additional chemical assistance.