Recent data from a Norwegian study suggest that infants born early-term or late-term have an increased risk of cerebral palsy. Children born at 37 weeks were at the highest risk. However, preterm babies generally have a much higher risk of many different complications due to their underdevelopment. Researchers have suggested that intrauterine complications generally play a role in the timing of delivery. As such, the timing of birth really isn't the determinant, rather the underlying complication is.
Primary source: Journal of the American Medical Association
Source reference: