I've been at institutions that explicitly discourage that because of that reason. They want you to get breadth of experience rather than work with the same one person for your early career.