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

The cattle roam across the prairie.

The gypsies roamed the woods.
the same meaning