Yes, you can connect different version nodes together, so long as they both support the protocol versions which are being used on the blockchain. This means that if you want a 1.0.6 node to be able to connect, you cannot use any of the new 2.0 functionality.