I agree entirely, from a random salvage yard, absolutely no.A engine from a yard is a no as i will have same problems, and the cost will be on the same range...
But, a reputable specialist is who I'd be talking to, you don't want nor need to be spending ballpark half the value of the car on getting it fixed.
Your money & choice, of course, but don't be blinded by "new engine" it won't be, it'll be rebuilt and alas from experience rebuilt engines can sometimes prove to be short lived.
I'd think long and hard before going down what seems to me to be an overly expensive route.