While I don't know if NoFap can fully cure anxiety and depression, I'll say that it will certainly help. NoFap will give you a noticeable increase in self-conifdence, which is what will help any anxiety and/or depression. Don't expect results overnight though, it takes time, but it will be worth it for sure.