You asked:

is millimeter smaller than centimeter

Yes. Mm is shorter than centimeter.
millimetre
millimetre
millimetre

centimeter
centimeter
centimeter