You will lose the weight, though there’s some evidence many people put weight back on when they stop. However, speaking as someone who isn’t a scientist, I would think it would be easier to keep baby weight off as it isn’t there in the first place through lifestyle.
Some (including me) plan to go on a lower maintenance dose once they reach target. Or I might come off and go back on any time the weight starts to creep up.
When I had a break on Saxenda, my weight piled on at an alarming rate and I wasn’t overeating.
I’m using Ozempic now and the once weekly dose is more convenient.