This varies by department. UCB chemical engineering explicitly has that policy, but that is not necessarily true for other departments at UCB (for example, there is at least one CS PhD student at UCB who was did an EECS bachelor’s degree at UCB). And some departments at other universities may have similar policies.