Atmospheric expansion driven by thermal energy and stellar radiation can occur and even lead to atmospheric escape, overcoming the inward pull of gravity.
The retrieved papers include studies on planetary upper atmospheres (such as Mars and terrestrial planets) that directly examine how thermal heating and solar irradiation lead to atmospheric expansion and thermal escape, demonstrating that expansion occurs despite the gravitational pull. Therefore, the claim is supported by the literature.