I've heard rumors of something similar about US anti aircraft systems, and this being a motivating factor in Turkey buying S-400s.
The actual motivation for Turkey to pick the S-400 was entirely political. They are signalling allegiance to Russia. The US is now cancelling Turkey's F-35 order in response.
Even if some missile tech were to be transferred (I rather doubt it), the key part of S-400 is not the missiles - but the very sophisticated radar, control and EW systems.
Either way, it doesn't get Turkey much ahead in designing their own missile defence system, and leaves them dependent on a potential (even likely) enemy.