Yes, because you are measuring the speed of light, not the speed of the earth, moon, galaxy, or any other material object. Light travels independently of objects. Light travel time is distance, they are inseparable when speaking about the distance and time of light travel.