As long as it is cooked properly just like any other type of meat, rat meat is quite safe and healthy to eat.
In fact, in many locations around the world, rat meat is eaten with frequency and sometimes considered a delicacy.
Many countries in southeastern Asia eat rat meat due to its high protein content, low prices, and high-availability and those locations.
But most cultures around the world consider rat meat to be impure, and the consumption of rats is shunned or even outlawed.
Whether or not to eat rat meat is largely a moral and cultural decision, but eating it will not hurt you in any way.