How can I install Xcode in another HDD

The first volume is SSD which has few space only. May I reinstall the Xcode in the second HDD?

Thank you