Correct, with the exception of conversion from active skill gems, which applies first.
If you had a gem that does 50% lightning built in, alongside having 100% cold and 100% fire, your total damage would be 50 lightning, 25 fire, 25 cold. If the gem has 100% lightning innately, you'd do 100 lightning, 0 fire, 0 cold.