I believe it is after, but don’t really think it matters all that much. Bottom line is you have a pickled worm in the bottom of your bottle.
If I recall, the whole idea was to demonstrate that the booze was actually made from an agave plant because the agave plant is the preferred home of that particular variety of worm.