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

She was granted leave to speak.

Might I beg leave to accompany you?
the same meaning