If you are changing your motherboard, mostly just make sure your cpu is compatible. (same socket, bios support). For the most part there should be no issue.
Some RAM might be incompatible with certain boards, but good ram is inexpensive nowadays.
How can i know which RAM is compatible with my board and i'm planning on changing my board to Asrock H61M