It depends how hot the fire got. Likely the block and crank can be saved. The engine needs to be torn down to inspect for damage. All gaskets and bearings need to be replaced anyway.