1.7.0 and 1.8.1 OS

Is it possible to have both OSs on the same computer and select which one I want to work with?