Very simple question

Is it possible to use dynamic text as a mask object? I’m thinking of making a loader animation which has the % loaded number mask over a color. So far, I’m thinking the answer is no, which is fine, as I think I have a workaround for it, but I’m just curious, as it would save me a lot of work.