It is all too easy to blow a pin on a microcontroller. Even if you don’t expect to be sourcing much current, it can be a good idea to put a 1k current limiting resistor in series with the pin.