You can, but you won't get the best results. Pre-grated cheese is coated with an anti-clumping agent so it's not going to melt as cleanly in the oven and it won't taste as good. I recommend grating the cheese yourself if possible.