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

How could you do such a thing?

He has a thing about seafood.
different meanings