Yes. I think Athlon X2 64 5400 is compatible with any AM2+/AM3(DDRII) motherboards
Your processor might be one of them shown above. They are all the processors designed for socket AM2, and they are compatible with Socket AM2+, incomptabile with Socket AM3. There were also motherboards designed for DDR2 and DDR3 systems, those motherboards also support your processors, but you have to switch the correct BIOS ROM on, and use the DDR2 memory modules.