I'm sure it would work just fine, but a couple things I would be careful about are 1. terracotta tends to absorb a lot of salt/minerals which over time could be bad and 2. when it's time to repot, those roots are going to stick to the clay like glue and will be almost impossible to remove...
I didn't even think about the hair roots that will find there way into the poors of the clay...