Is residency necessary when purchasing real estate in the USA?

No; foreigners can buy US property without US residency or a green card, although they face specific tax and reporting rules.​