2 or 3 LED colors on a single digital pin

Doesn't the voltage go straight across that point instead of through a resistor first?