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

Shake one's head.

He was shaken from his dreams.
different meanings