The locking screw is inserted into the pedicle screw head to tighten the rod and ensure the immobilization and stabilization of the spinal segments.