An accelerometer measures acceleration, not movement. You need some kind of optical sensor (even the camera) to make it usable as a mouse.
So while I'm sure you could make it work convincingly, it still wouldn't work as well as a proper rollerball or optical sensor.