Help the Student Pilot

The lower atmosphere essentially is, yes - air pressure is just the total weight of all the air above you. If lower layers heat up but upper ones don’t, the weight of the upper layers, resting on the lower ones, will contain them and cause their pressure to rise.