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

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

They were assigned to kitchen fatigues.
the same meaning