basic question to connect a led to esp32

5V -> 470 Ohm ->led anode, led cathode -> GND

This shoud not ruin the I/Opin (it has a 12mA limit)

Something else must be going on..