I absolutely loved my PhD work and I'm happy I did it. But I'm also happy I was careful to consider how this degree might help my employment down the line. Which it did. I've got an absolutely amazing research position that is well supported in the research arm of a BigCo now. I wouldn't expect that the pay is optimal versus other paths, but I'm well compensated, the work is stimulating and I'm highly autonomous.
And as you implied, to is absolutely possible to come back to Academia after spending time in industry.