I hope someone will know the answer to this question.

I have a E34 525i and i have a noise coming from one of my rockers.
I also have a spare E34 520i which is also 6 Cylinder. Is the camshaft
from the 520i the same as the 525i ?