Is the word "ground" used in the same way in the following two sentences?

They gained ground step by step.

They fought to regain the lost ground.
the same meaning