It depends on exactly what we mean by "$f$ is continuous". Taken literally, the answer is no: If $$f(x)=\begin{cases}1,&(x=0),
\\0,&(x\ne0)\end{cases}$$then $f$ is not continuous, but the weak derivatives of $f$ equal $0$.
Typically in this sort of context when one says $f$ is continuous one means that $f=g$ almost everywhere, where $g$ is continuous. If that's what we mean then the answer is yes.
Note, inspired by a comment: One has to be careful about jumping to conclusions; the continuity condition above has more or less nothing to do with being continuous almost everywhere! For ease of reference let's label the two:
(i) $f=g$ almost everywhere for some continuous function $g$.
(ii) $f$ is continuous almost everywhere.
On $\Bbb R$, the function $\chi_{(0,\infty)}$ shows that (ii) does not imply (i), while $\chi_{\Bbb Q}$ shows that (i) does not imply (ii).
Exercise investigate the implications, if any, between (i), (ii) and a third version:
(iii) There exists a set $E$ of full measure such that $f_E$ is continuous (wrt to the subspace topology on $E$).