Yes, my helmets have been attached to my "man bag" as carry-on luggage (usually my handlebar bag) or put in the lightweight duffle bag along with my clothing for the trip, that also is carry-on.
I've never contemplated leaving my helmet in the bike box.