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

Grate carrots and onions.

Grate nutmeg.
the same meaning