It's possible, but not easy.
You would have to use round bullets and have a gun capable of shooting the bullet (giving it a linear velocity) and spinning that bullet at a very fast velocity (angular velocity ), because of The Magnus effect the bullet would make the bullet curve into the direction of the spinning.
For better understanding of the Magnus effect, watch this video:
https://www.youtube.com/watch?v=t7MsYZgtXXo
advertising links deleted