I can't think of a reason you couldn't specifically train an AI on your own large code base. After all, current LLMs are trained on effectively the entire internet.
If your only aim is to use it like Copilot, sure, it's useful.
Just right after we have invented AGI.