It's been a while, but I believe it is possible. So long as mac you are connecting to has a thunderbolt connector and mac does not have OS above 10.13.
Personally, I would agree that it's not the best idea. I would sell the imac as-is to someone to do the repair and buy a new display. 4K Is nice if you have a need or source for it, but a really nice IPS FHD monitor can be as usefull and not $$$.
Personally, I would agree that it's not the best idea. I would sell the imac as-is to someone to do the repair and buy a new display. 4K Is nice if you have a need or source for it, but a really nice IPS FHD monitor can be as usefull and not $$$.