Hello,
Yes, but you need to remember to rename the DOCX output to DOCM:
$docxTemplate = new CreateDocxFromTemplate('output_macro.docm');
$docxTemplate->addText('New text');
$docxTemplate->createDocx('output.docx');
rename('output.docx', 'output.docm');
Regards.