for A axis rotary stepped motor can attach to Z axis?

for A axis rotary stepped motor can attach to Z axis? my cnc shield only z is free.

Yes you can, just you need to setup the steps accoordinly

+Ariel Yahni​
means need to adjust grbl setup, right?

Yes.