ANSWER:
As long as a person doesn’t know what he’s doing is sinful, he’s not punished for it because Allah doesn’t hold a person accountable for something he did out of ignorance or forgetfulness.
However, he must learn at least the basics about Islam to differentiate between rewards and sins as this is well known.