Yes, you can! By taking care of the problem before it gets out of hand. You can be proactive in doing this. Here are a few steps you can do yourself:
Make sure you maintain cleanliness in your house and yard
Rodent-proof all holes of your home.
Eliminate outdoor access like overhanging trees that can allow rodents to hop onto your roof.
Dispose of outdoor food sources like garbage properly
Remove spaces that can provide safe habitats for rodents like debris, clutter, shrubs, and bushes
Get a cat (obviously)
There are instances where you need specialists to get rid of rats and mice. Experts know the best steps in ensuring your home is rodent-free.