the original matter it was travelling in previous to that matter it slowed down in. There is some coeffecient n (refractive index) that defines the constant for speed of light thru different matters.
I'm too lazy to look it up/remember the equation right now, but I think for your question a simple Yes will suffice.