You didn't "make" the code because it's not physical, and you don't have that right that you argue you have, because you can't own the code.
You absolutely have a say on what anybody can or cannot do with a specific piece of hardware that allows the reproduction of that code, e.g., a CD containing the code, while you lend it to them.
Not because you wrote the code, but because you own the CD and some else taking it from you would prevent you from possessing it.