Can foreigners buy United States real estate?

Yes they can, and they also don’t need to be in the United States to make the purchase. Because they don’t need to be in the United States they don’t even need a visa.