Yes, what we call the speed of light is really the speed of light in a vacuum. When light passes through a medium like water or glass it travels slower. That causes the light to be refracted which means that it changes direction slightly based on the energy of the light (color) and the refractory index the material. Glass will refract a red laser by a certain amount while water will refract it by a different amount.
Fun fact, because different colors refract differently, when you shine a white light through a specially shaped piece of glass called a prism, you will see a rainbow pattern.
https://www.science-sparks.com/wp-content/uploads/2019/06/shutterstock_1194072568-1024x606.jpg.webp