Do javascript and php calls map to same ID?

Piwik assigns a piwik visitor ID to track users. Assuming I am tracking calls from both the PHP side and Javascript side.

Is the piwik visitor ID same if I track via Javascript or Php?