Bismillah
Thank you for your question. This depends heavily on the maturity of the child, but while a child may be convinced of religion or not, they are not taken account for their actions or their beliefs until they reach an age of maturity. On the other hand, if they commit good actions with belief they will be rewarded.
May you always be successful