Not likely. CS2 is too old for modern computer OSs. And the activation servers for it were taken offline several years ago.
Assuming your computer can support CS2, you would need to download a new copy from the web site and use the special serial number provided on that page. No guarantees this will work on your system though.
"Activation server unavailable" error in Adobe CS2, Acrobat 7, and Audition 3
If Photoshop is important to you, consider joining the Creative Cloud's Photography Plan. It's only $10/month and you're getting the very latest software that's compatible with modern OSs.
Another option is to buy Photoshop Elements. It's kind of a light version of PS. Not quite as many bells & whistles but it might be all you need.
Nancy