Can you repair a camshaft position sensor?

No, a camshaft position sensor is a sealed electronic component and cannot be repaired. If it's faulty, it needs to be replaced. The replacement process typically takes 15-60 minutes for a professional, depending on the vehicle's make and model.