Suppose The Great Wall of China is a series of fortifications made of stone, brick, tamped earth, wood, and other materials, generally built along an east-to-west line across the historical northern borders of China to protect and consolidate territories of Chinese states and empires against various nomadic groups of the steppe and their polities. Several walls were being built from as early as the 7th century BC through the Warring States period (481–221 BC, with the most well-known sections being built by the Ming dynasty (1368–1644).
Can we infer that "The Great Wall of China was built to protect against nomadic groups."? Yes, no, or maybe?