A light year is a unit of defined unit of measure. That's all it is. If you take the speed of light times the number of seconds in a year, that is how far light will travel in one year. It is a convenient form of measurement gien that the distances being measured are so great.
We use other properties of light and known reference objects to estimate the distance between Earth and the the lights source. The resulting distance is given in light years.
Not only is it feasible to use light to measure distances, it is the only option for distant objects. Consider that a laser aimed at the moon spreads out some 200km by the time it gets there and only a tiny tiny fraction is actually reflected back. Can you imagine how much spread would occur if you aimed light at Proxima Centauri which is 4.2 light years away? We can't bounce a laser light or a radar beam off of anything so we have to look at the light emitted by the distant source.