You still have a shot, but in math at least it’s seriously frowned upon to attend grad school where you got your undergrad. Not just at UCs, at every high tier institution. You’re supposed to… I dunno… go sow your intellectual oats. They don’t like it if you stay in the same place.