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

A riding academy.

Academies of literature and philology.
different meanings