Can I do a PhD after being out of academia for 5-10 years? I'm from Europe, for context.

Very soon I will graduate with a Computer Science Master's degree. I have a paper as a first author at one not-so-famous conference, but I also have a paper at a NeurlIPS conference as the last author.

After my master's degree, I would like to go into the industry for 5-10 years and then later on pursue a PhD. Assume that I won't publish anything in the period of 5-10 years when I will be in the industry.

We thus get to my question: Can I do a PhD after being out of academia for 5-10 years? 

I know that I most likely won't be accepted to a prestigious university like Berkley or Harvard, but, that doesn't seem to matter that much, if I will produce quality work.

What do you think?
Why would you want to do the PhD? 

I don't ask this question to be nasty, but you really do need to know why you want to do it. I am currently working for a PhD in subjects that I have not studied or practised for 50 years (yes! 5-oh). 

I could not have afforded to interrupt my reasonably successful professional career to take on academic research that would not have enhanced my subsequent career, but, in my case, having ended my professional career I was free to pursue my academic interests. 

I know why I am doing it, and am very happy with that choice, but the crucial thing is to be really clear with yourself about your motives.