I really wouldn't use carpet, not even reptile carpet. It would just get nasty when the snake pees and poops and be a breeding ground for bacteria. There are other good substrates out there that can help you achieve the proper humidity for your snake. It is initially your snake and your call, but I personally wouldn't do it.