If you forgot the passcode to your iPad, or the device has been disabled, you can restore and unlock it with a computer or the Find My Website or app.
Locking the screen keeps you from accidentally moving the icons around, but if you want to change your layout, you'll need to ...