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

He does not have a grain of sense.

There was a grain of truth in what he said.
the same meaning