Of course yes. Light from sun reaches earth through the vacuum present in the space. Light does not require any medium to travel. However, Light can also travel in medium like air, water and solids. Example,we can see things inside water and glass which is a liquid and solid, which is due to travel of light.