Yes, if you have Automatic Updates turned on, the iOS 16 should download and install overnight when your phone is plugged in.