If I synch my iphone I know I will lose all my music/data (which is fine cos I have it backed up) but will it update my firmware and lose my jailbreak/unlock?

Cheers....