This is assuming that your trip starts and stops exactly next to the train station and that there is a non-delayed train available precisely at the right time. In practice that's not the case and those time add up
quickly.
Car trip will look like:
1. Travel from start to location (3:20)
2. Find parking (0:5)
3. Walk from parking to location (0:10)
Total time of 3:35
Your train trip will look like:
1. Go from start to train station (0:20)
2. Wait for train (0:10)
3. Train to Berlin (1:50)
4. Train station to location (0:20)
5. Wait at location because there was no better train (1:00)
Total time of 3:40.
It stil might be worth it to use the train, as you can work/read in the train which you can't do in a car.
But for the train to be working it needs planets to be aligned: start location must be within reasonable distance to train station; end location must be within reasonable distance to train station; train travel speed is significantly faster than cars; train schedule is aligned with desired arrival time. If any of these conditions are not met, the train option does not work