No, it does not. The damage calculation is complete way before the animation is over.

Anyway, that macro does look kind of off.

If you want to use trick attack with a WS, you need to do /ja "Trick attack" <me> before /ws Whatever <t>. Currently, that macro will execute sneak attack, make your WS execute with sneak attack in effect, then after the WS is over, it would perform trick attack.

If you want to perform Sneak attack and trick attack with the same WS, your macro should look more like this:

/ja "Sneak Attack" <me>
/wait 1
/ja "Trick Attack" <me>
/wait 1
/ws "......" <t>

Alternatively, to save macro lines, you can use /ja "sneak attack" <me> <wait 1> instead of putting /wait on its own line.