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

I carry these thoughts in the back of my head.

I will carry the secret to my grave.
the same meaning