Does the iPhone sync with every computer it is connected to?

I connected my iPhone to a computer (not mine) to charge it and I didn't pay attention to what the computer displayed.So, did my iPhone sync with the computer? (Like photos, music, apps… Etc.)

And BTW I don't have access to that computer.

If you have your phone for syncing with computer on your settings yes it will then.