Hi, my question is:

Is it acceptable to do a PhD in mathematics in a topic such as Number Theory and or Analysis and change subjects in postdoc to something different than these topics such as Geometry/Topology or something else?

I've looked on some pages of researchers in mathematics and most of them just continued their topic of dissertation after their graduation.

Thanks in advance.