technically, yes. you can use salted butter instead of unsalted butter if that's all you've got, especially if you're making something simple like cookies where the chemistry of adding salt in a specific amount and at a certain time won't terribly affect the outcome, unlike bread.