Yes, most cities with serious tourism sell some form of visitor pass, and they fall into two families worth distinguishing before you spend. Plain transit passes give unlimited rides on metro, bus, and tram for 24, 48, 72 hours or a week, and they pay off once you are taking more than three or four rides a day. City cards bundle transit with museum entry, attraction discounts, and sometimes airport transfers, cost considerably more, and only make sense if you will genuinely visit several of the included attractions, so tally your actual itinerary against the card's list before buying.
Watch the details that determine real value: zone coverage relative to where you are staying, whether airport lines are included or need a supplement, and whether validity runs by calendar day or by 24-hour blocks from first use.
Also know that many cities now cap daily spending automatically when you tap a contactless bank card, which can undercut a tourist pass with zero planning. Buy from the official operator app, station machines, or tourist offices rather than third-party sites, which add markup for the same product.