Yes but random people who think attacking people is fun aren't doing so as a tactic, anymore than an alligator attack is counted as terrorism. Petty criminals sometimes get ideological cover (and indeed under much of the faux piety of many terrorist groups, there is a gangster level of drugs smuggling and racketeering that often manages to usurp the initial political goal) but not all petty criminals are terrorists.
Also, terrorist groups will use crime as a means of raising money (the IRA for example).