Reorder rotation of an entity

In Three.js we can reorder the axis of rotation simply by:
object.rotation.reoder(“YXZ”): Now this object will rotate first on Y then on X and finally on Z.

Can we do anything similar in playcanvas? As in playcanvas, the entity rotates on X first then on Y and finally on Z.

If I do it like this:

this.rotateAxisEntity.setLocalEulerAngles(0, 0, 0);
this.rotateAxisEntity.rotateLocal(0, y, 0);
this.rotateAxisEntity.rotateLocal(x, 0, 0);
this.rotateAxisEntity.rotateLocal(0, 0, z);
return this.rotateAxisEntity.getLocalEulerAngles();

Will it work?

Thanks