While am4 lasted 4 generations, you can’t put 4th Gen chips in a 1st Gen board or vice versa. There are even some 1st Gen boards that can’t do 3rd Gen chips and vice versa.
I was fairly disappointed when I found out AMD blocked Asus from updating 1st & 2nd Gen motherboards to be able to use pcie 4.0 with an agesa update on the BIOS. Blocked is probably the wrong word here though as Asus had already released the boss updates that unlocked pcie 4 on 1st Gen boards with 3rd Gen CPUs. /Rant