Will rats and mice coexist?

As pets no. It is not a good idea to keep these two species together. They can compete for the same things and fight.