Gaining weight

Can you gain alot of weight and eat unhealthy but still end up with a small baby?