No no no, the cannot live together!!!! There are many different species of rat snake, I believe that it is a genus which includes corn snakes, but I could be wrong. They should not live together though, even if they have the same husbandry requirements.