Yes, you can use cheats in Left 4 Dead 2—though this is generally limited to the PC version, where the developer console allows you to enable them.