Does "fatigue" mean the same thing in these two sentences?

Metal fatigue.

The soldiers were put on fatigue to teach them a lesson.
different meanings