Most of those techniques and machinery is behind company secrecy, but yes, you need highly precise and specialized machinery to build that kind of things.
Linus Tech Tips did a tour of the Intel fab factory a few months ago: https://www.youtube.com/watch?v=2ehSCWoaOqQ