Yes, you can. To make vegan colored pasta you will need to use 250g (8.8 oz) semolina flour instead of soft wheat flour and double the quantity of spinach or beetroot. Then add water as necessary if the dough is too dry.