Will these devices compatible with each other?

So if I understand you, I need only to change the wires and rewrite something in the code. Right? So I can order them. Right? Yes or no? :)