Idk where ur from but here they do a quad blood test its like 8 viles of blood work to check for deformities and hereditary disorders and diseases.
Cerebral Palsy is rarely hereditary. I's more often caused my complication during pregnancy such as illness in mother, or incidents during or after birth as in low oxygen supply. As long as you do everything you can to stay healthy, and you give birth at a reputable location there's no reason to believe your child will have it, but I would discuss this in further detail with your Dr. so they can watch for it.
I think you would get the best answers from a medical professional in regards to this...