Integrate code changes via Grafana plugin SDK for Go

We have added a function to Grafana code so that when a user sign in, he gets a new organization created for him with some datasources instead of the default one. this function is called inside of the OAuthLogin function. My question is Grafana plugin SDK for Go can be helpful in integrating this function easily without the need to remake those changes to grafana code whenever an upgrade is needed?