Suppose that someone applies for a PhD in the US with publications in topic X, and hence the whole SOP and the target group both revolve around X. They get admitted, and realise soon after entering that there is another topic they would love to work on, albeit it is worked on by a different group.

Is it possible to switch? Or are they supposed to work on X with the same group during the whole PhD?