Nope! It depends on your weight before getting pregnant. The baby has a weight goal as well. So you could stay the same weight the whole time and have a very healthy pregnancy.
https://americanpregnancy.org/pregnancy/pregnancy-weight-gain/
https://my.clevelandclinic.org/health/diseases/9012-gestational-diabetes
https://my.clevelandclinic.org/health/diseases/4497-gestational-hypertension