Exercising/losing weight while pregnant

I'm not pregnant yet, but I am quite overweight and still struggling to lose it. I exercise often it's my diet that interferes with weight loss. When I become pregnant is it still okay to exercise and try to lose weight? When my sis was pregnant she actually lost 50lbs and had a healthy 8lb girl. Is it healthy?