Hello,
Yes, you can accomplish that task using DOCXPath (https://www.phpdocx.com/documentation/introduction/docxpath), that allows to query contents and insert, move, clone, remove and replace elements.
Please note that this feature is available only in Advanced and Premium licenses. If you need to upgrade your license you can do it on MY PHPDOCX page after login.
Regards.