Yes, it does
The temperature of a body is proportional to the intensity of vibration of its molecules
If a body absorbs heat the kinetic energy of its moecules increase thus the mass of the body increases ,too
of course the mass difference is not measurable because of the conversion factor c^2 but it is not null