Can I get tracking code to my application from piwik when users register from my application

My requirement is to get tracking code for the user register from my site to piwik via url.

Yes, you can, see for example this API: Reporting API Reference: API Reference - Matomo Analytics (formerly Piwik Analytics) - Developer Docs - v3