A little sauce and salt to taste!
Just like @adetola said, they are both very important. The crank shaft will not rotate if the engine is not running and the engine will not run if the valves are not opening, the valves cannot open if the camshaft does not do it's work and finally, the cam shaft will not rotate if the crankshaft doesn't.
I hope i didn't confuse you further.
P.S. Dont judge a book by its cover