Yes, it fits there because it has the same socket, but the i7 has a significantly higher TDP, 35W vs 55W.
That means the stock cooler in the laptop won't be able to cool down the CPU properly and it will over heat eventually.
Either way, the motherboard also may not recognize that CPU. This require a BIOS update, but this doesn't guaranty that it will work