I only want a voucher code to be usable when my customer buys a particular product, can I do that?

To specify that a voucher code can only be used when a particular product is purchased, when creating the voucher code select 'product' from this 'this code will apply to' drop down list.

Then, enter the name of the product from the next drop down list that appears.