Is the distance between sun and earth a constant?
No. The earth’s orbit is not a perfect cricle; it’s an ellipse. The average distance is approx 93 million miles or 1 AU [astronomical unit]. From the source below: Changes in orbital eccentricity affect the Earth-sun distance. Currently, a difference of only 3 percent (5 million kilometers) exists between closest approach (perihelion), which occurs on or about January 3, and furthest departure (aphelion), which occurs on or about July 4. This difference in distance amounts to about a 6 percent increase in incoming solar radiation (insolation) from July to January. The shape of the Earths orbit changes from being elliptical (high eccentricity) to being nearly circular (low eccentricity) in a cycle that takes between 90,000 and 100,000 years. When the orbit is highly elliptical, the amount of insolation received at perihelion would be on the order of 20 to 30 percent greater than at aphelion, resulting in a substantially different climate from what we experience today.