If the drive itself uses a standard SATA data/power interface(s), then yes, you should be able to use as an internal drive.
However, most pre-configured "NAS" type setups include encryption, meaning you'd struggle to recover data currently on the drive itself. But with a format, you should be able to proceed with it as a basic internal drive.