Correct, to the first approximation. What is not considered is torque loss from the fiction in the gears. This loss is small per gear so not worth considering for simple gearing but can add up to considerable percent in a large gear train (many gears).