Yes. Well, no. Well, sorta.
Rather than making races illegal, I defined what races were available in my last campaign because it was supposed to take place in a part of the world that had very specific limitations.
Primarily, there are no reptilian races in the area. This is because I want them to form their own empire elsewhere in the world, and I want that to be the second area of the campaign we play in with everyone playing a reptilian character.
That all sounds like way too much work. You’re basically re-designing the entire game at this point.
IMO, your time would be better spent finding a system that already does all that. They do exist!
I would suggest maybe taking a look at 13th age, or some of the renaissance games like WWN and the like.