What if someone uses the code to build a weapon and then kills people with it? Can the court hold you liable?
Software is a tool. Like other tools, it can make any process more efficient, for better or worse. Damn, I've been in management too long.
Software is generalized, certain weapons are... not so much.