In most cases, cerebral palsy is not hereditary and is not caused by genetics. It is usually caused by damage to the brain before, during, or shortly after birth.