Yes, refer to specifically:
https://www.mmobugs.com/wiki/index.php?title=MQ2Bot#If_statements
Basically, you would put an entry under your [MQ2Bot] and save then /loadbot, for whichever AA.
For example, if it's AA3 then you would make a condition like:
AAIf3=${Target.ID} && ${Target.PctHPs}<99