Can someone transfer his shares to other person's DMAT account. If yes, then how

Can someone transfer his shares to another person’s(other than family) DMAT account. If yes, then how.

Check this conversation - How do we transfer shares from one demat account to another?