Oh you bet! I've frozen it in snack bags, tinfoil cups, whatever I had on hand. After that I use one of those seal machines with the seal bag. It keeps it longer. Some recommend to leave out the pine nuts or cheese until ready to use. I never have though. Good luck!
I make the pesto (in my blender) then scoop it by tablespoonfuls onto a baking sheet and put that in the freezer.
When they are frozen solid I put them in a freezer bag.
I can take out as many as I need: 1 T = 1 serving