Does word "air" have the same meaning in the following two sentences?

He threw the ball into the air.

A smell of chemicals in the air.
different meanings