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

A formation of planes.

A defensive formation.
the same meaning