Did you only see one ant? I'm not aware of ants hurting cannabis but i also wouldn't want bugs in my buds. If you're seeing more ants look for aphids, ants farm aphids. Depending on the type of ant, I've had decent luck with borax based liquid traps. Never touches the plant and the ants will bring the poison back to the queen. Some ants prefer sugar based bates other like protein.