Not sure for something that old but the older iMac drives work with old Macbooks so its worth double checking. You can also try regreasing and cleaning the lens on the drive to see if that fixes it
Don’t bother with rice or anything like it. Try put it somewhere warm and well ventilated and see if it fixes it but normally liquid marks in screens are very difficult to remove and you might need a new screen.