While cerebral palsy is not typically inherited, there can be a slightly higher risk in families with a history of the condition or certain genetic factors.