This very parallax effect. We know how far the Sun is from the Earth, and the Earth has moved twice this distance from January 1 to July 1. This in turn allows us to extrapolate distance to some of the nearest stars by their apparent motion relative to the other, "fixed" stars.
> The first rigorous and accurate scientific measurement of the Earth-Sun distance was made by Cassini in 1672 by parallax measurements of Mars. He and another astronomer observed Mars from two places simultaneously. A century later, a series of observations of transits of Venus provided an even better estimate.
https://en.wikipedia.org/wiki/Cosmic_distance_ladder
https://www.youtube.com/watch?v=7ne0GArfeMs