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

The battalion was a mere skeleton of its former self.

There must be a skeleton somewhere in that family's closet.
different meanings