No. Stars within a constellation can be different distances from Earth. A constellation is simply a group of stars that are seen from Earth to form a recognizable pattern or shape in the night sky. The stars in a constellation may appear to be close together from our vantage point on Earth, but they can actually be very far apart in space. Some stars in a constellation may be hundreds of light-years away, while others may be thousands or even millions of light-years away.