Does the word "leave" have the same definition in the next two sentences?

She was granted leave to speak.

The applicant now seeks leave to appeal and, if leave be granted, to appeal against these sentences.
the same meaning