Input code for next time

is there a way to input code for the next time you connect your device, if you are going to do it later

Could you elaborate please?