Gyro/Accelerometer with stepper motor

Hello Arduino Community,
Just wanted to know if its possible to control a stepper motor with a gyro/accelerometer. I basically need the stepper motor to rotate while the y-axis is changing. When the y-axis is increasing or going up the stepper will move in one direction and if it is going down the stepper motor will rotate the other. Trying to make a robotic arm. Thanks.

yes it is possible..

How would I go about doing this? Coding wise?

Ok, how are you supposed to control the robotic arm? from an android device for example ?
Yes , it needs some coding , but i think it's not something difficult. Also there are some ready apps to use..