Weight gain in the 3rd tri

Ba
So I started this pregnancy overweight (230) up until 34 weeks I didn't gain a single pound. In the last 4 weeks I've gained 6lb. 2 of those where in a week! My doctor hasn't said anything (so I know not to be worried) but is this weight gain from what I'm eating or?