Digital IO current limit

I understand that the 5V power pins of the digital input/outputs has a 1 amp max current. Is this current limited by the cortex or will plugging in a load that asks for more current damage the cortex?

I don’t mind running my load at a lower power, but I don’t want to potentially fry the cortex.