Question about babys ?

Carol
My friend says babys who are 9 pounds are chunky bc what the mom ate for 9 months .. When on the other hand she said moms who eat healthy , exercise & remain from sweets for 9 months have tiny babys (6-7 pounds ) is that true? I always thought it was based on genetics??