Assuming you managed to install a preheated bolt, it would become looser as it cooled down.
Rivets, on the other hand, are commonly heated and forged so that both ends have a head, and then as they cool the clamping load increases. This was very common a hundred years ago, but my understanding is that bolted joints provide a more predictable clamping load and that is why they are so dominant today.
this is something ive seen done with new trailer ball being installed. heat the nut and crank it on the ball threading, but not too tight or the nut will crack.
>> really the original title messed up a bit. they say bolt, but are clearly depicting a nut as the subject.
hot-nut.jpg [JPEG]
[https://hips.hearstapps.com/hmg-prod/images/1-0001-hot-nut-6...:*]