Can I use a trombone mouthpiece on a euphonium instrument, or vice versa?

No. Trombone mouthpieces are specifically designed to be used on trombones only. Likewise, this applies to euphonium and baritone mouthpieces. This is because the internal design of a trombone mouthpiece is different compared to that of a euphonium or a baritone mouthpiece.