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

A grain of salt.

A grain of sand.
the same meaning