2003 Dodge Ram 1500 ticking noise

I just bought a 2003 Dodge Ram 1500 and it has a ticking sound trying to find out what it is any ideas from anyone please.

Which engine and how many miles on it? It’s often valve adjustment, and we need to confirm that is possible.

Can you tell us where the noise is coming from?