Yeah, youre fine. The ToS has passages outlawing automated gameplay, but theyre looking at running a script to play for you while youre AFK not something like auto-targetting an ability.

As a general rule you dont want to use too many macros. They can cause some issues that make playing harder(dropped inputs, abilities not qued properly, etc) and in the long run will lower your overall output. But simple things like targeting(or text alerts for key skills) are usually fine.