The Earth's distance from the Sun does vary throughout the year, but the relationship between distance and seasons can be surprising. In fact, the Earth is closest to the Sun, a point called perihelion, around early January. Conversely, the Earth is farthest from the Sun, called aphelion, around early July.
However, the seasons are not caused by these variations in distance. Instead, they are primarily a result of the tilt of the Earth's rotational axis. The Northern Hemisphere experiences summer when it is tilted toward the Sun, despite being farther from it, and winter when it is tilted away from the Sun, even though it is closer at perihelion. The opposite is true for the Southern Hemisphere.
So, while your statement is technically correct about the distances, it's important to remember that the seasons are influenced by axial tilt rather than proximity to the Sun.