Depends on your DE and DM more than anything. Personally I’ve found that KDE/SDDM was a bit janky when logging out and back in without rebooting, even if it was just on x11 od wayland.
YMMV, but nothing fundamentally destructive can come from doing this, you’re doing something no different to logging out and back in as a different user