Does word "rest" have the same meaning in the following two sentences?

The boulder came to rest just behind the house after rolling down the mountain.

The ocean was finally at rest.
the same meaning