While it's preferable to grate fresh carrots for the best texture and flavor, you can use store-bought shredded carrots as a convenient alternative. However, make sure they are well-drained and not overly wet to avoid excess moisture in the cake.