I am currently using v2.2.1 and my wallet is locked. If I updatemy wallet to 2.3 then will it be locked still when I open it?
Woody already answered this, but I'm gonna get a bit more technical. Not a whole lot

The "encryptwallet" RPC command does just that: it encrypts wallet.dat itself. All the peripheral stuff that makes it work for humans and interact with the blockchain can be changed to a great degree, and as long as it can read and compare wallet.dat, nothing internal to it will change.