Can rusty cylinder heads be used?

I know cracked cylinder heads should be repaired/junked but what about heads that are real rusty? Can they always be cleaned up enough to salvage them and reuse? Thank you. P.S. Same question, what about rusty cylinder blocks?