Spinal cord reflexes are simple behaviors produced by central nervous system (CNS) pathways that lie entirely within the spinal cord. The sensory afferent fibers that evoke these reflexes enter the spinal cord and activate spinal motor neurons directly or through a chain of one or more spinal interneurons.
Correct. You’re thinking of Spinal Reflexes.
https://www.sciencedirect.com/topics/medicine-and-dentistry/spinal-reflex