Not impossible but highly unlikely
If the diamond is big enough and the bullet is small enough, it’s not impossible that the diamond will resist the bullet’s impact sufficiently to not shatter. … A diamond is undeniably hard but it’s brittle and not overly tough, so it will most likely shatter if struck by a bullet.