In Islam, it is permissible to name beneficiaries other than immediate family members on a life insurance policy. The selection of beneficiaries should be in accordance with Islamic inheritance laws and should not contradict any legal obligations or societal norms. It is advisable to consult with an Islamic scholar or legal expert to ensure compliance with Shariah principles.