It should work just fine. It will even work in Windows, although I’ve never tried that myself. https://github.com/foosel/OctoPrint/wiki/Setup-on-Windows
I’m guessing getting it to work in Linux is easier, but I use Linux all the time, so maybe not for everyone. Octoprint has a very healthy google group to answer any specific setup questions. It’s probably something similar to these instructions: https://github.com/foosel/OctoPrint/wiki/Setup-on-a-Raspberry-Pi-running-Raspbian
That being said, installation on a pi using the octopi image is really really easy. So if you’re pressed for time and flush with cash, it’s definitely a better solution.