If your novel is for young adults, I would avoid detailed sexual depictions. If it's for adult readers, and simply has a child the main protagonist, maybe? If it's not narrated from the child's POV, it should be okay.
The more illicit the sexual details, the shorter the overall length of the depiction/scene should be, is a good rule of thumb to follow if you don't want to that part of story to come off as pornographic.
The more illicit the sexual details, the shorter the overall length of the depiction/scene should be, is a good rule of thumb to follow if you don't want to that part of story to come off as pornographic.