No, it is not possible to export/import the Secret macro data to the same or other Confluence sites. Confluence XML export file does not include Secret macro encryption key data.