Is rest used to mean the same thing in the next two sentences?

The ocean was finally at rest.

A body will continue in a state of rest until acted upon.
the same meaning