Yep, that will work fine.
If you are using the same heatsink / fan that you have on the current processor, you will need to get new thermal interface material, and apply it. Or if you are using a new cooler that comes with the CPU, it is already pre-applied.