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

Curled up on the foot of the bed.

The foot of the page.
the same meaning