hi and welcome to health care magic!!
well the spinal cord
gives out roots to the nerves that supply the body right from the cervical to sacral region, the control of bowel movements is from the lower lumbar and sacral roots through the autonomic system. and yes the compression or pressure on these roots could lead to constipation
.consult a neurologist
or neurosurgeon for the same.