Yes, Glycerol can be used in SDS-PAGE. Glycerol is added to the loading buffer to increase density of the sample, so it does not diffuse out of the gel.