Are the icecaps of mars composed mostly of frozen water?

The ice caps in the North pole of Mars compose of frozen water and frozen carbon dioxide and the ice caps on the South Pole consists mainly of of frozen water.