Yes. The Myrdal-Flam train is a side trip from the Bergen-Oslo. You get off at Myrdal and get on the Flam train which goes down to the Fjord, slowly, so you have time to take in the spectacular scenery. It makes one stop at a waterfall, (where there are “spirits” flying around), before continuing to Flam. From Flam you can either return to Myrdal and catch the next train to Bergen or continue on by ferry to Gudvagen. There may now be transportation back to Bergen by bus, but this is recent…someone with more recent knowledge can comment.