It is only illegal if you do not wipe the original drive clean after you complete your transfer of everything to the SSD.
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”