of course the mass of a body increases by rising it temperature
Einstein wrote

Ist die Trägheit eines Körpers von seinem Energieinhalt abhängig?"

The original equation was

dM = L /c^2

where dM stands for difference of mass and L for electromagnetic energy (Lebenskraft)
So if a body absorbs /emits a radiation even a thermal radiation then it gains / loses mass