It only takes one mosquito to infect a cat, and because mosquitoes can get indoors, both indoor and outdoor cats are at risk and should receive heartworm preventative medication. In a North Carolina study, 28 percent of the cats diagnosed with heartworm were inside-only cats.