Opposite. Stainless on mild steel. Steel on aluminum. It takes two different types of metal, then the weaker metal corroded from the contact when exposed to a conductive solution (water with road salt?)
Now, if you fastened two pieces of stainless with plain steel hardware, that plain hardware would be in for issues..
I guess I'm thinking along the lines of put a stainless nut on a stainless bolt and they weld themselves together. Stick a mild nut on the stainless bolt and gtg.