Welcome to the forums, newcomer!
When posting a thread of troubleshooting nature, it's customary to include your full system's specs. Please list the specs to your build like so:
CPU:
CPU cooler:
Motherboard:
Ram:
SSD/HDD:
GPU:
PSU:
Chassis:
OS:
Monitor:
include the age of the PSU apart from it's make and model. BIOS version for your motherboard at this moment of time.
should this work?
If your motherboard has the right BIOS version, then the processor should work after the swap. The other pre-requisite is that you didn't' get a dud Ryzen processor.