Damage to the camshaft can cause significant problems for the engine. It is in your best interest to pull over as soon as possible and have the cams inspected in order to prevent damage that will require more expensive repairs. If that doesn't work, you might have to repair the engine, cylinder block, pistons, valves, and/or the head and/or the pistons. It's possible that your vehicle has reached the end of its useful life, but that depends on how much it's worth.