Hi ali adeen,
I am Dave, I will help you with this.
Yes, you can use that drive in a HDD enclosure as a data drive.
After you install Windows on the SSD, connect that HDD using a USB enclosure, then copy off any files you need from that drive to the SSD temporarily
Then in Disk Management, delete all partitions on the HDD and create one new large partition, that HDD will then be ready to use as an external data drive.