Yes and no. Foreigners receive a great deal of attention in China, especially in rural areas, but it isn't necessarily friendly (although usually not hostile either). Staring and pointing are often the most common reactions. Many Chinese people are genuinely friendly, but only if you speak Chinese.