Yes this works. You can ask the shadcn mcp to mix and match code from registries.
Here I asked for the confirmation component from ai-elements (radix), but told it to use primitives from coss-ui (base).
It did exactly that. Flawlessly. (See below for the full conversation).