Yes, you can keep the cat to prevent the infestation. Dogs are not a threat to mice, so they will not react that much. Mice are afraid of the cat’s smell and will not get close to the house with a cat inside. You can also play a cat’s voice near their nest.