It was a joke on phrasing. You don't write a program with a barcode scanner, but you might write a program that uses one. 🙂
This all depends--how are you getting the data? If it's through a COM or serial port, sure. You just have to know how to read the data from it. (I doubt anyone on this forum's going to know for your exact scanner.)