Yes and no.
If you had a thermometer that had no heat generation then yes.
If you have a resistor or other heat generating circuit then you need to have the needed surface area to radiate the heat away. If you don't, it will heat up. It's a rate problem.