Technically speaking you can connect to servers with any CD key accepted by the game itself (as you always could through direct connect). Naturally obtaining an unlicensed copy is still against the EULA as is circumventing the CD key protection system by using a forged CD key.
And yeah, servers have their own ban lists, which can be based on CD key or IP. So the CD key you use is visible to the server you connect to.