If you used it to alter the stats, moveset, etc of a Pokemon, then yes, that Pokemon is hacked. There are some hacks that are generally accepted, such as if a Pokemon is cloned it isn't hacked, and if someone creates infinite Master Balls to catch with it's not hacked either. RNGing, which is similar to hacking but not the same, is not considered hacking either.