Is the word "ground" used in the same way in the following two sentences?

Ground the electrical connections for safety reasons.

The storm grounded the ship.
different meanings