wont start

My 97 F-150 (4.6) won’t start. replaced battery and still won’t start. comp error states “camshaft position sensor”, I don’t understand. would this keep it from starting? and if so can I replace it?