Junkyard cars with no outside damage often scare me in regard to engine reliability. Sure it can be other things, but I've never had good luck with 'those type' of cars. Now if there is a car that has accident damage, I'd trust the engine. Heck the last few LSX like that all made 600+whp
Are you able to remove the valve cover to see how it looks?