I kinda doubt it's a tumor at his young age, but anything is possible. It you just got him, I would be more inclined to think it's an abscess, maybe from a bite from a cage mate? Rats heal so quickly, that a small infection might have gotten sealed up in there. Definitely take him to the vet. He needs to go for a checkup anyway since you just got him.
Best of luck!