In this article, we determine the function (Sg,p) such that the right-angled Artin group G(Pm) is embedded in the mapping class group Mod(Sg,p) if and only if m is not more than (Sg,p). Using this function and Birman-Hilden theory, we prove that Mod(S 0,p ) is virtually embedded in Mod(S g,0 ) if and only if p ≤ 2g + 2.