Does "air" mean the same thing in these two sentences?

The flock of birds took to the air.

There was a tension in the air which made me suspect an approaching storm.
the same meaning