I have done these kind of trips when I was younger. It's nice if you enjoy travelling by train (bring some card games) and want to see some city centers / sights.
In retrospect being older now I would say the time spend moving around, checking in and out of hostels etc, just to see some old buildings and ultimatly quite unremarkable urban tourist sights isn't really worth it. But it is this kind of bucket list activity younger people do to later smugly explain that it isn't really worth it π