The nail itself grows back. But if there's an infected wound going to necrotize, it may affect the claw bone, too. A nail doesn't fall off without reason, so you really should have a close look (or better way your vet should) at your chameleon's toe. A damaged bone will not grow back and an infected toe can lead to a whole foot necrotizing if the worst comes to the worst.