Extrude surfaces maintaining their per face color

I want to extrude multiple surfaces maintaining their per face color.Is it possible?

Extrued surface can’t maintain their per face color, but they can retain the color of the layer to which the object belongs

Thank you so much, Sir.