went astray

“His aim missed and the bullet went astray and killed a bystander.”
Is this sentence OK?

Yes.