Yes, you can at least try. How you can best get the data from your defective hard drive, I will show you below:
Remove the defective hard disk from your PC.
Reconnect it to another computer.
Open the file explorer and select the connected hard disk.
If you are denied access to the hard disk, you will have to change the access rights, for which you can find various instructions on the Internet.
Next, you can move the data on the defective disk to another storage medium.
Once you have backed up all the data on the broken hard drive, you can format the hard drive again.
If this or similar procedures do not work, we advise you to consult a specialist who can try to read out the data for you.