Yes. Transferring the ownership of an investment to a family member counts as disposition of that investment, and so the gift becomes subject to capital gains tax.