Yes Pakistan is considered to be a desert country because there are some deserts surrounding Pakistan.
The Thar Desert spans an area of 175,000 square kilometers and covers large areas of Pakistan and India.
The Thar Desert is the largest desert of Pakistan and the only subtropical desert of Asia and is the seventh largest desert on the planet and the third largest in Asia.
Pakistan also shares its borders with four neighboring countries which are the People's Republic of China, Afghanistan, India, and Iran.
Pakistan and China are also friends from what I've read online and they share close military relations, with China supplying a range of modern armaments to the Pakistani defense forces.
China also supports Pakistan's stance on Kashmir, while Pakistan supports China on the issues of Xinjiang, Tibet, and Taiwan.