If fan is not working and it was overheating, but not booting now, then yes the CPU or some other component may be dead. CPU is soldered to the motherboard in many laptops so really the only thing you can try is a new motherboard, or replace the laptop with the same model and swap the drive into that.It was overheating before and fan is also not generating the noise as it did earlier