I've done this without problems. Just make sure you don't overdrive the I/O. The other thing is that if only one LED is on there shouldn't be a problem. However if more than one is on then the LEDs will dim when you start turning more of them on.