"aerodynamic force(s) exerted in bullets by the air, is the reason of having riffle in barrels?" Short answer: yes.
Longer answer/explanation: in air, having the bullet rotate (due to rifling) causes the conical front to stay aligned (mostly/approximately) with the direction of motion, improving the aerodynamic characteristics: reducing drag leading to increased range; increased accuracy.
In a vacuum these aerodynamic considerations are gone so it should not matter whether the bullet is rotating or not.
A related thought experiment: imagine two asteroids traveling through space, one rotating with axis of rotation aligned with trajectory, the other not rotating. I can't think of any reason why one is more stable than the other (to first order).