Yep, but pics have been designed to drive leds directly
so you dont need any resistor. you can sink or source straight
but some pins are meant to different uses. For instance the
famous RA4, thats open drain, it is meant to tie to the data
pin on serial eeproms, so you don't need to change pages to set
IO direction, just bsf pin to 1
To drive leds with other suply voltages, like 12 or 24v you may
use a simple NPN transistor, like a 2n2222
Tie the base straight on PIC's pin, colector on supply and emmiter
goes to led's anode, place leds cathode on ground, no resistors needed
and you dont use regulated supply for liting leds.
Study, simulate and BUILD and you will c its true.
Pics are realy good for simple stuff.