Yes you can and should compost cardboard. Stick with cardboard that has not been printed on and remove tape and labels etc. Rip or shred the cardboard into smaller pieces to help it break down further.