No nut allergies in my family and amazingly not in my son's school, but all the same I would pick some other kind of snack than peanut butter if I was going to be eating it in an enclosed space such as a plane.
You never know whether there may be a peanut allergy on board or how sensitive it may be, same as you wouldn't get on a plane with perfume or aftershave on - you don't know the sensitivity levels of who you'll be flying with. Even sitting next to someone who isn't smoking but has the smell of cigarette smoke on their clothes makes me go green.
The thing about little kids and pb& j is, you don't know where else they're putting their hands, paper towels, etc. and simply touching seats and surfaces that an allergic child may touch later may be enough to trigger a reaction, I don't know.

. (I suppose if they're that sensitive, peanut residue left by previous flight passengers could be a factor, too)
My son went through a brief Pb & J only period in kindergarten but I quickly got him beyond that (to turkey, bologna or jam-only sandwiches) as I did not want to have to be caught with a limited lunch option in case we needed to accommodate a peanut allergic person at school or elsewhere. Nuts are just a very volatile food choice for public consumption around kids, I guess.
I wonder if they still sell peanuts at ballgames, or if that's one place nut-sensitive people have to avoid? Also, are nut-sensitive people allergic to sesame seeds as well? They always seem to serve those on Air Canada flights.