Marriage and children

Reed

Hypothetical Situation

A child between the ages of 8-15 leaves their primary parent to visit with their other parent out of state. While away the primary parent marries, so when the child comes back they now have a new step parent.

Is it wrong to marry without the child knowledge? Should the parent have had a conversation with the child?

Edit, the kid doesn’t know the step parent