When I took the Germany to Denmark crossing I'm almost certain you weren't allowed to stay on the train. I certainly didn't anyway. But, yes, it still saves a lot of time compared to walking between train and ferry twice.