Weight loss and pregnancy

Anyone ever been advised by a doctor to lose weight during pregnancy?

I'm just really worried about gaining a bunch of weight during this pregnancy considering I'm already a bit overweight as it is.