Is the word "light" used in the same way in the following two sentences?

He stepped into the light.

Hey, buddy, you got a light?
different meanings