It only affects the camera produced JPEGs not the RAW files. The data stored with the RAW files may however contain the info which could be applied later by the RAW converter to create or re-create the camera JPEG -- depends on which converter is used. Typically the converter supplied by the camera manufacturer can do this.
I avoid all such camera settings and shoot RAW only.
Joe