Not directly, but it helps a lot to make a device-independent program in C++, which can then also include cross-platform (universal) serial port controllers to switch on/off a coffee machine switch, or to give a signal to a lego robot which refills the water and coffee powder.
Without Leadwerks, you would have to link all the libraries and tools yourself, which is much more work.