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

The motor was out of commission.

Put the ships into commission.
the same meaning