If they are of the same sex, yes. Rats should always be housed in pairs or more, never alone.