It is possible to study for yourself and then pass the national pharmacy tech exam.
The requirement is to pass that test, regardless of how you got there.
Most people do it by going to school, but there are online programs, and you could teach yourself at least in theory.