For the most part, no—but there are exceptions. In the Mario & Sonic at the Olympic Games series, the two mascots appear as friendly rivals, competing side by side. They're also shown getting along in various plushie videos and mashups online. So while they're traditionally rivals, they clearly can play nice when the occasion calls for it.