Yes, you can! But make sure to make the coffee very strong, just like espresso, otherwise, you won't get any coffee flavour in your sourdough!