Enable usb debugging on phone using adb command

Hello is it possible to enable usb debugging on phones just by using adb commands? The problem is the phone needed to be the usb debugging enable but the phone is password locked and cannot be open, thanks