In general, yes light can be converted into electrical energy. However, whether or not this occurs in a given instance depends on the light's properties.