Yes, but it doesn't have to be in person, it can be in text. Something like electrician or plumbing probably requires hands on mentoring. Many times, the person who wrote the original code is long gone, so there isn't a mentor.
The original point I was trying to make is you don't have to be "in the office" to learn programming stuff.