In my opinion people often make the mistake of using Anki to memorize one-to-one translations of foreign words. It is more effective to use it to learn the mapping of whole sentences.
For every word you want to learn, add a few idiomatic and representative sentences in Anki. You can do the same for every new grammatical concept you want to learn.
And don't forget to use Anki's text-to-speech tools to practice listening as well as speaking.
Does it replace other forms of learning entirely? No, but it can be a great component of learning a new language.