Might be worth a shot but unfortunately Octoprint recommends at least a Pi 3. I tried it myself on a 2B and had nonstop issues with print quality from stutters while the Pi was sending gcode to the printer. As soon as I swapped to a 4B the problems disappeared.
If you have a 3D printer that can’t connect to the internet, you could try Octoprint.
Might be worth a shot but unfortunately Octoprint recommends at least a Pi 3. I tried it myself on a 2B and had nonstop issues with print quality from stutters while the Pi was sending gcode to the printer. As soon as I swapped to a 4B the problems disappeared.