Yes, it could be the best way to replace HDD with SSD drive. To protect your data safe, you may use the third party software like AOMEI Backupper to backup/clone data from HDD to SSD drive without issues, I have done it successfully before once. EaseUS Todo Backup, and Macrium Reflect are all work.