Bacteria and viruses die when cooked or roasted properly.
But there are also pathogens that produce toxins, especially when stored for a long time at room temperature. I don’t know what these pathogens might be and if rats cary these. But it seems that chickens can eat fresh and cooked rat meat...