Grease and oil residue from pizza boxes can cause problems in the recycling process.
You can recycle the part of the cardboard box that is not contaminated with food residue. For example, if the lid is clean, you can tear it off and recycle it.
When in doubt, throw it out.