Yes, ShipEngine supports gram weight units in addition to ounces and pounds. ShipEngine also supports centimeter dimensional units in addition to inches. In each shipment, you can specify which units you are using for the weight and dimensions.
Learn more about package dimensions in ShipEngine’s article called Size and Weight.