Why not? We need to stop treating sex workers like they are subhuman. The fact that parents aren’t monitoring their childrens internet behavior isn’t a reason to limit another person’s career prospects if they chose to monetize their bodies past or present.
As long as the teacher in question isn’t advertising her pornographic career or material to her students then why can’t she continue to teach and earn money on the side as long as she’s not bringing it into the classroom?