There is no valid reason to get fat during pregnancy, and doing so is unhealthy for both the mother and the baby.
A pregnant woman is not "eating for two". Even in the third trimester, a woman's daily caloric needs are only ~450 kcal higher than normal, which amounts to a bowl of oats with milk, or a banana with three spoons of peanut butter. In the first trimester, ZERO additional calories are needed.
Excessive weight gain leads to many problems and risks with pregnancy, childbirth, and breastfeeding. Be responsible and keep your weight in check.