NRIs can of course assign assets to their legal heir / s or any other option of their choice. An NRI is any immovable property in India, be it residential or commercial – and even agricultural land or farm house (which they are otherwise not entitled to purchase).
An NRI is also free to obtain assets from another NRI or resident in India. However, the Reserve Bank’s permission is required if the property is acquired by a citizen of a foreign state and resident outside India.