If I create the invoice with the Magento API, will the PDF be based on the Amasty template?

If I create the invoice with the Magento API, will the PDF be based on the Amasty template?

If the extension is installed and enabled, PDF will be generated on the Amasty template basis.