If you mean if it’s Sun WuKong, yes that’s him, he pissed on the Buddha’s finger, so he was punished and pressed under the mountain for 500 years until Tang Sanzang helped him remove the curse and freed him. He then escorted Tang Sanzang to the West to obtain Buddhist scriptures.