Yes, if all the particles of a system lie in the X–Y plane, then it's necessary that its centre of mass lies in the X–Y plane.
As all the particles lie in the X–Y plane, their z-coordinates are zero.
Therefore, for the whole system, zcm = 0; i.e., its centre of mass lies in the X–Y plane.