In his answer to your question Dr. Monzer Kahf, Scholar in Islamic Economics & Financial Expert, who stated,
Yes, but provided that you actually transfer ownership to them with all ownership’s privileges and your intention is not preventing other heirs from inheriting you.
If you have such intention, this intention is subject to questioning by Allah Who ordained the distribution of estates in the Qur’an, in surah An-Nisa’ (4) verses 11 to 14.
May Allah guide all of us to what pleases Him!