Ability to use c++ class wizard to add code to a plugin/module

From what I understand, with the c++ class wizard, it is currently only possible to add the class in the project’s sources (or is it even just in the main module?).

Would it be possible to add support for adding a c++ class directly into a code plugin? Very often, I like to put my code inside plugins for reusability, so that would be of huge help