Can I use an iPhone 4 originally from verizon that is no longer on a plan with just Wi-Fi?

My mom received a free verizon iPhone 4 for work a few years ago and it has not been on a plan in a long time. It has a lock code that no one remembers and I'm in the process of restoring it to factory defaults. I do not want to activate this phone and put it on a plan. I simply want to know if it is possible to use this iPhone as a mobile internet device just using Wi-Fi. I'm assuming I would have to jailbreak the phone to achieve this even if it is possible. Is this possible?

Yep, shouldn't have to jailbreak either. Reset back to factory. It'll just be an iPod. Best luck.