You could, but I don't think you are going to get as nice of a flavor as you would with the roasted variety. If you can only find raw pistachios, I would suggest toasting them over medium heat in a small skillet until fragrant or lightly toasted.