In this video, we look at the transformation from an abc frame into an alpha-beta frame, as well as the dq frame. Additionally, we discuss how to implement such a transform in simulation software such Simulink.
Alpha-beta is different than dq. DQ is basically alpha-beta, but rotating at the same frequency as the abc components are, so as to create the illusion that the abc signals we are dealing with are DC quantities as opposed to AC. So, yes, the transformation is not the same.
I am assuming that you are referring to the number of poles that the machine has when you say 2 or 4 poles. The transformation may be applied to any system that can be represented by a space vector/phasor. The condition for that is what I write for the functions around 8:45, and the definition of the space vector is shown shortly after. This definition shows us that the details of the system are not important, just that vector/phasor components must add according to the relationship that we have defined.