Adding state through formula in VX Ace?

I saw a help post on an RPG Maker Facebook group by a person who wanted to add a crit up state on attack.

The answer he received was to put a.AddState(ID) into the formula.

Thing is, this person was working in MZ.

Can this be done in VX Ace?

If so, is it the same, or do I need to formulate it differently?
a.add_state(id); [formula];

formula always at the end, as it has to be the last thing executed and returned.
Thanks for the information! I shall try that out.

Original thread: https://forums.rpgmakerweb.com/threads/adding-state-through-formula-in-vx-ace.162379/