Absolutely! Rats are super smart, social animals. Especially Roof Rats, which will learn to do tricks almost without any effort.
This family adopted a baby Roof Rat from us, and within days had taught it to do a trick. Watch what happens when the rat hears the command word: isn’t that just adorable?