You can add tannin both before and/or after.
Adding tannin in cider is similar to adding tannin in wine.
There are two types of tannins and both have their place ... one is the type of tannin from grapes and the other type is from wood - usually oak.
The tannin powder most people get from the brewers/winemakers store is generally the *grape* type unless specified otherwise.
Grape tannin is typically added before ferment (particularly with wine) ... Oak tannins typically after ... although if all you have is the grape type, you could use that after as well to carefully adjust to taste.
Grape tannin in particular adds a more bitter element as it is derived from catechins in the stems and seeds of grapes.
This is why if you are *not* getting the tannic bitterness from the apples, and decide to add grape tannin powder, you should be careful with the additions. Grape tannin can make your wine or cider bitter quickly if overdone.
You should also be careful if you add oak tannin too, even though the “hydrolyzable” type of tannins that oak adds are softer and add more favorable flavors and aromas without the tendency to quite as much bitterness.
While the bitterness of both types of tannin will mellow over time, the corresponding rise in astringency in that molecular change as it ages will seem greater with the grape tannin because it already has added more astringency to begin with. (astringency is the perception of dryness in the taste of wine or cider - or if really too astringent, "roughness")