Does the word "shock" have the same definition in the next two sentences?

Whole fields of wheat in shock.

It came as a shock to learn that he was injured.
different meanings