Yup, I always use onions when I do corn beef hash. It should be considered a crime without it lol jk. The sweetness of the onions counter balances the strong tasting corn beef.
On a side note, I never got the combination of ruben and sauerkraut. Maybe its just me, but the combination of those...