Yes. You can use any SATA device with any SATA-compatible motherboard.
There might be some edge cases where certain devices don’t play nice with each other, but that’s rare.