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

I could see the roof of the bear's mouth.

The roof of the cave was very high.
the same meaning