FAA and Congress, to include I am sure ICAO, would have to sign off on pilot-less aircraft. Imagine code-share Iberia pax being told, your connecting flight into Orlando will be on a pilot-less aircraft. Uh, say what ?
So, yes, our jobs are secure for probably 50 more years. Just remember, 50 years ago was 1963, the early days of the jet age and FE's, etc. So, never say never. But for those of use age 15 and older, today, the professional pilot job still will exist.