It's better than nothing (not much of a commendation, but there isn't exactly detailed info on toothpaste conductivity), but proper thermal paste costs about the same, so why would you bother? The stuff even comes with most, if not all heat sinks (thermal paste, that is, not toothpaste).