are theses parts compatible

Solution
for the CPU: it should be compatible, you may want to check for a BIOS upgrade

for the Ram: yes they are

upgrading your PSU is recommended