Any truth to the practice of BLACK painted parts dissipating heat better?

Isn't anything black if it's under a closed hood not exposed to light?