Yes, you can pre-shredded carrots to make the cake, but pre-shredded carrots tend to be drier, which may affect the texture of the cake. It is best to use freshly shredded carrots as it provides optimum flavour and moisture to the cake.