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

As there was a lot of damage, we chose the heavy roller to flatten the pitch.

Flatten your stomach with these exercises.
the same meaning