Yes, of course it is possible.
Here is how: http://docs.openhab.org/installation/linux.html#package-repository-installation
Deploy Raspbian, install OH2, do other stuff with your rPi
or even better… try the recommended flavor: openHABian (which combines the first 2 steps into 1) and it is a “perfect” solution ! from @ThomDietrich