It's expensive these days to get the timing fixed on a sewing machine, and hitting a pin can do that to a machine. Plus I have had a broken needle hit my eyeglasses also.
It's simply not worth the potential damage. Even if it's fine 9,999 out of 10,000 times!