The answer is no. To construct a counterexample, note that if $\{a_i\}$ is any bounded sequence such that $a_{2j}=-a_{2j-1}$ for all $j\ge1$, then $\lim_{n\to\infty} \frac1n \sum_{i=1}^n a_i = 0$ exists.
So take $f(x) = |x|$ (bounded on the interval $[-2,2]$), and take
$$
a_i = \begin{cases}
(-1)^i, &\text{if $i-1$ has an odd number of digits}, \\
2(-1)^i, &\text{if $i-1$ has an even number of digits}.
\end{cases}
$$
Then $\lim_{n\to\infty} \frac1n \sum_{i=1}^n a_i = 0$ as above. However,
\begin{align*}
\liminf_{n\to\infty} & \frac1n \sum_{i=1}^n |a_i| \le \liminf_{k\to\infty} \frac1{10^{2k+1}} \sum_{i=1}^{10^{2k+1}} |a_i| \\
&= \liminf_{k\to\infty} \frac1{10^{2k+1}} \bigl( 10 + 2(90) + 900 + 2(9{,}000) + \cdots + 2(9\cdot10^{2k-1}) + 9\cdot10^{2k} \bigr) \\
&= \liminf_{k\to\infty} \frac1{10^{2k+1}} \biggl( \frac{12\cdot 10^{2k+1} - 10}{11} \biggr) = \frac{12}{11},
\end{align*}
while
\begin{align*}
\limsup_{n\to\infty} & \frac1n \sum_{i=1}^n |a_i| \ge \limsup_{k\to\infty} \frac1{10^{2k+2}} \sum_{i=1}^{10^{2k+2}} |a_i| \\
&= \limsup_{k\to\infty} \frac1{10^{2k+2}} \bigl( 10 + 2(90) + 900 + 2(9{,}000) + \cdots + 9\cdot10^{2k} + 2(9\cdot10^{2k+1}) \bigr) \\
&= \limsup_{k\to\infty} \frac1{10^{2k+2}} \biggl( \frac{21\cdot 10^{2k+2} - 10}{11} \biggr) = \frac{21}{11}.
\end{align*}
(The basic phenomenon is that we have arranged for the sequence $\{|a_i|\}$ to oscillate between ever-lengthening runs of two different values, which is what keeps its sequence of averages from converging.)