Having some ants in the wood shouldn't effect your cooks, as far as I know. But, I'm sure you'd rather not have them, especially near your house.
Carpenter ants live in wood, whereas termites eat it. For both, the best thing to do is get the wood up off the ground. Then, you can treat the ground under the raised wood pile. Both termites and carpenter ants need to go to ground for water regularly. They should die off.