Yes, the presence of dead rats can potentially deter other rats. Rats are known to avoid areas where they detect the scent of deceased rats, as it signals danger or the presence of predators. However, this deterrent effect may vary depending on the specific circumstances and the population of rats in the area. It's important to note that the best approach to rodent control is to prevent infestations through proper sanitation, sealing entry points, and implementing effective pest management strategies.