But all that occurs in the peripheral nervous system too
The spinal neurons are much longer and fewer synapses.
For example, the afferent sensory spinal neuron junctions are with the cell body head in the dorsal root ganglion outside the spine.