I have to disagree. A resistor running at it’s rated power will be hot to the touch, perhaps enough to burn. As will a LED, although the latter will be a bit cooler as the max junction temp is about 300ºC.
Also a resistor is not very temperature sensitive. Typical carbon film resistors have a TC of about 50ppm/°C. That means from 25º to 125ºC it will change by 5000 PPM or 0.5% maximum.
LEDs on the other hand are very temperature sensitive, as are diodes, and have to be driven by a constant current source lest they go into thermal runaway.
On the other hand, most resistors are running at a tiny fraction of their rated power and actually are cool. But that is not always true. It can be quite hot and still be doing what it is supposed to.