YES and NO
Yes, the security took ot from me, the pilot or attendant keep it during the flight, and they gave it me back at the arrival.
NO, becasue.... it was a knife, but not a swiss one.
By the way, I had the same problem with other metallic parts, that 'could be' used as a weapon. Each time, they gave it back to me when arriving.