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

The trapped miners found a pocket of air.

The battle was won except for cleaning up pockets of resistance.
different meanings