If you replaced the crankshaft sensor on a 1996 Chevy Cavalier would the 'check engine light' go off if that was the only problem?

light should go off . if that was the problem, and is now fixed, disconnect the battery for 5 minutes,then reconnect battery this will reset the computer and remove the signal from the warning light if that doesnt work, there is a different problem apart from crankshaft sensor