Are mushrooms with interior holes ok?
Those holes are most likely caused by some kind of larva(pdf), such as mushroom maggots.

While disgusting, such larva are harmless to humans, and the holes they leave behind are equally harmless. Since you just seem to have the holes, I wouldn't worry about it.