As the aunt of a 12-year-old boy, I constantly stress over what’s appropriate: a carelessly dropped F-bomb can have me feeling guilty for days.

But after “Good Boys,” I’m wondering if I’ve been overcautious.

From the writing-directing team of Gene Stupnitsky and Lee Eisenberg (co-writers on “Bad Teacher”), this is a raunch-com that goes for — and gets — stunned laughs.

Its young protagonists curse like truck drivers as they encounter drugs, sex toys and hardcore pornography in their quest to prepare for the Holy Grail of sixth grade: a kissing party.

They’ve got a ringer in their lead, Max (Jacob Tremblay of “Room”), a cutie who’s desperate for a face-to-face with his crush. His posse consists of theater-kid Thor (Brady Noon) and square Lucas (Keith L. Williams), both of whom go along despite reservations.

As with many comedies, this one flags in the middle, but still delivers one cringingly funny set piece after another, including a bit about a sex doll the boys mistake for a CPR dummy to practice their kissing on (“Why does she have a hair in her mouth?”).

Underneath it all is a core of genuine sweetness that keeps “Good Boys” from being a pointless shock-fest. The filmmakers have their finger on the pulse of the exquisite awkwardness of the tween years.

Whether or not that demographic should be allowed anywhere near this film, it’s a heartening vote of confidence that today’s kids, despite the onslaught of R-rated life material, are all right.