Do you need a scan tool to clear the codes after replacing the new pass lock? on 2003 Oldsmobile Alero

Rookie cbe0621eac06868b3efe0d8d1d3611e23c60d3114864ea2ec19a68cfbd3eebab
Relaced pass lock and will not reset. The security light stays on even after 10 minutes.
(1) Answer
new passlock came with a set of instructions to do key on /off cycles did you do that?...if you did do not need a scanner....