If I may add to this, there is also another situation which refers to 'dynamic cooling' and it happens mainly in the winter.
You may have a situation where you have an elevated moist layer from which snow is falling and it is moving over a shallow surface layer which is above freezing but is very dry. The snow falling through the dry air will evaporate (virga) and this will do two things; it will add moisture to the dry layer which will eventually lower tward to surface and, it will also begin to cool the air due to evaporative cooling. (the opposite of latent heating). If the lower layer temps are close to freezing and the precip is heavy/persistent enough, the dynamic cooling may be enough to drop the temps below freezing so once the snow reaches the surface, it will accumulate.