The moon is about 384,400km from Earth. It has real world, detectable effects on the Earth.
The brightest star in the Sagittarius constellation is 1,353,000,000,000,000 km from Earth. It has effectively zero effect on the Earth, other than what little light it gives us.