Is there difference between old tracking code and the new one?

Would the old javascript tracking code work, let’s say from piwik version 2, with the latest Matomo version?

Hi,

It depends on how old you mean with old, but it should work.