# photon absorption by atoms causes heat?

I have came up with a weird doubt: photon absorption by atoms causes heat? I mean, I was always told that if the photon's frequency is the magic one, the atoms absorbs the photon and goes to an excited state. So I have to suppose that heating (increasing in kinetic energy) happens when the frequency is outside the set of permitted transitions. Is it correct?