I don’t see why not… You just need a SATA 3 interface and power. Check out this example. Since I do not use a raspberry Pi maybe other members like @twl can add perspective.