No, any person who is not of Indian origin and who resides outside India cannot purchase immovable property in India. The only exception is if they acquire the property by way of inheritance from a person who was a resident in India.
Unless they reside in India for 183 days in a financial year, it is not legal for foreigners to own property in India. Foreigners can’t buy property using a tourist visa and a tourist visa will allow them to stay for only 180 days.
A foreigner also can’t buy a property jointly, one eligible person with one non-eligible person can’t buy property in India.