Thermal imaging is routinely used to check the condition of live electrical systems and can show faults like poor connections.
However, it’s important to interpret the images with background information about circuit design and loading in mind.
Just because it’s warm, doesn’t mean it’s failing and conversely just because it’s cold, doesn’t mean it’s ok.
Example, a 13A U.K. plug under moderate load will run hotter on the live side than the neutral side because the fuse generates a little more heat than a solid conductor.