Yes, we use this, basically person B is telling person A that he should only say that about himself, and not person B, so person B should 'speak for himself' only and not for person B, since what he is saying does not apply to person B.
I hope that made sense :)