ASUS make boards for both AMD and nVidia chips - so provided the socket it compatible and the appropriate BIOS revision is installed, along with appropriate support for the TDP of the chip - you'll be fine.
https://www.asus.com/us/Motherboards/M5A78LM_LX/HelpDesk_CPU/
The 6350 is not a supported chip on that motherboard though. Max chip TDP is 95W and the 6350 is a 125W CPU.