Do people with the same functions tend to understand each other better?

That is: ISTP, ESTP, ENFJ & INFJ, as well as INTP, ENTP, ESFJ & ISFJ, etc.