Yep! And engineering advances can trigger breakthroughs in both. It is marvelous to see basic research, applied research and engineering forming a virtuous complex.
Not accurate. Early thermodynamics (in the broad sense, including gas laws) like Boyle’s 1662 Law and others led to Papin’s 1679 invention of the steam digester and related inventions (steam release valve) which directly led to Savery’s 1698 steam engine.
Vacuum science is also a critical predecessor to the steam engine, developed by Galileo in the 1630s and demonstrated as artificial vacuum and the barometer in the 1640s.