Yes, distances between stars are commonly measured in light years, which is the distance that light travels in one year. This unit of measurement is used because the vast distances in space are so immense that using kilometers or miles would be impractical.