Will 5.7L GM heads fit a 5.0L?

Yes, but they need to match in part numbers.