With both kids I gained exactly 40lbs- I think that is just what my body needs to make a baby. I was the same weight pre-pregnancy with both babies. DS#2 was nearly 2 pounds heavier than DS#1.
I say if you are eating well (ie. good foods, and not junk) your body will gain what you need.