Can I check collision by socket?

I have some question about checking collision.

I’m trying to make melee attack(punch).

Especially, I want to check collision only when hands is overlapped.

So I search about collision by socket.

In function that OnComponentBeginOverlap gets as parameter, there are OtherBodyIndex in function parameter.

Can I use that to determine weather OtherActor(overlapped actor) is some part of character?

If it possible, I want to read document or some code about that.

If it can’t, I will try to attach capsule component to hands.

What about this? Is this possible?