Is worth to buy a EU rail pass?

Hi, I am going to travel to Europe for two months as a workaway volunteer, and I am thinking about buying a 4 day within one month pass since I am going to visit three countries, and places I am going to are not big cities and also I’m under 28.
My plan is :
1st July: Italy to Switzerland
15th July: Switzerland to Germany
31st July: Germany to Denmark
And since I still have one day left, I’m thinking that I can have a short trip from Germany to Prague

I have checked the bus’s website but looks like some buses departure or arrive at midnight, I am alone so don’t wanna take a risk

Do you think is worth buying the pass? Or I should just buy train tickets in advance, thanks!

P.S. do you have any recommended places that I can visit from Berlin?