Yes, if they are wired in series. But if they are in parallel, you need one resistor for each LED. Or you can wire LEDs in a series string with one resistor, and wire those strings in parallel. The reason: The amount of light from the LED is proportional to the current going though it.