Is society used to mean the same thing in the next two sentences?

He enjoyed the society of his friends.

This society has been known for centuries for its colorful clothing and tight-knit family structure.
different meanings