Speaking from experience, that is exactly how I used and was prescribed Ozempic.
I stopped eating processed foods and cut nearly all my sugar intake. It was a total lifestyle change and I lost 40 pounds in the process.
I’ve been off of it for nearly a month and I’ve kept off the weight so far.