Has anyone successfully lost weight without depleting supply?

Hey guys! So I am currently 2 months pp, I gained about 30 lbs from being pregnant. After delivering baby, I had supply issues and my LC mentioned I needed to eat more calories, so I listened to her and ate a bit more. I have PCOS btw, I went back on metformin to manage my insulin resistance. With all that, I’ve recently noticed I’ve gained an additional 10 lbs from eating more. I want to know if it’s okay for me to diet and exercise to at least get back to my pre pregnancy weight which is 155. I genuinely don’t feel nice being this heavy.