Install debian in the usb pen drive attached to Wd Mycloud(gen2) usb port

I can install debian on the hard drive inside Wd Mycloud(gen2). Is it possible to move the debian to the external usb drive?