[Plugin] Object Pool Component

I basically want to create Object pools at runtime, set their TemplateClass and store them in a Map so that later, when I want to spot item X, I can call its Pool and spawn from it. So it is possible to do it in C++?