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

Within the compass of an encircling wall.

Within the compass of education.
the same meaning