You correct.
But this won't happen straight away.
The aerosol can has a safety feature in the base of the can, it is concaved. allowing for some heating
The base will expand out , giving more space inside the can, or more time if you look at it that way.