Correct! Warm and cold air creates the conditions for smog. When a layer of warm air clouds over a layer of cold air (called inversion), smog is trapped over the city.