Are cc and mg the same?

No. A "cc" (cubic centimeter) is an old term for a milliliter (ml) which is a unit of volume.

A milligram (mg) is a unit of mass.