I was privileged to attend a college where most of my teachers were also friends and peers. Class or lessons during the week, and gig together on weekends.
And we were always able to tell the two apart, we were professional, there was never a problem.