Some of it, yes.
But they tend to have low efficiency, thermally-dependent efficiency, and the need for a temperature differential. They operate in response to a temperature gradient, not just heat.
Using Wikipedia for a quick-and-dirty figure, you can expect efficiencies to peak around 5-8%. And you can't just stack infinite thermocouples until system efficiency reaches 99.99% because of the thermal gradient issue.