No, there are lots of i3 processors from different generations that are not compatible with one another.
i3 xxx (socket 1156)
i3 2xxx (socket 1155)
i3 3xxx (socket 1155)
i3 4xxx (socket 1150)
Processors from the same socket are usually compatible with motherboards supporting that socket, though older boards may need BIOS updates to support new CPUs.
Can you explain a little more what you're trying to do? It's not clear.