No, it does not as a practical matter. The size may change as it expands or contracts, but that would change the density, not the mass. No atoms are destroyed or created by the temperature change.
Substances expand when heated, increasing their relative volume, so their density decreases.