Sure, but if you miss your connection you can just take the next train. Frankfurt to Berlin might be impossible, but Hamburg to Berlin is manageable (4-5h), if money is tight, as is Hamburg to Sylt (3h) and many other connections in the 200-400 km range.