Yes, they can. Do a search on here for guard rail gates and you will get a thread that explains how to do it and where to source the extra stanchions and bases. Not a cheap job, particularly if you have to pay somebody to fit them.
The factory option had them fitted with the forward double stanchion where the current first stanchion is sited and the aft one further aft so the opening was alongside the cockpit. Google Bavaria 36 images and you will find some photos showing the arrangement.