yes you can, but the cartons and plastic containers will swell. I have froze gallons of milk before, but I remove the lids first to give the milk room to expand. Once thawed, you have to shake it up a bit, but it will be fine :)
For those with infants, you can also freeze breast milk (in case...