Yes, the redshifting of light can be caused by the effects of relativity and the different wavelengths perceived by observers. This phenomenon is known as the redshift and is a key component of the theory of general relativity.
According to the theory of general relativity, the wavelength of light can change when it is observed from a moving object or in a gravitational field. When an object emitting light is moving away from an observer, the wavelengths of the emitted light appear stretched or "redshifted." This is because the motion of the object causes the wavelengths to be stretched out as the object moves farther away from the observer.
Similarly, in the presence of a strong gravitational field, such as near a massive object like a black hole, the wavelength of light can also be stretched or redshifted. This gravitational redshift is a consequence of the distortion of spacetime caused by the gravitational field. As light travels through this distorted spacetime, its wavelength is altered, resulting in a redshift when observed from a distance.
Both the relativistic redshift due to relative motion and the gravitational redshift due to gravity are well-established phenomena that have been observed and confirmed through experiments and observations. These effects play a crucial role in various astrophysical observations, such as the measurement of the expansion of the universe and the study of gravitational waves.