Can the amount you eat or how much you gain during pregnancy determine your baby’s size?

Like if you eat a lot will your baby more likely be bigger?? Vice Versa