In an aqueous environment (you did not describe the environment), mild steel will become the anode in a galvanic couple and corrode preferentially. However, with stainless bolts, it sounds like you may have a small cathode surface area relative to a large anode surface area and this works in your favor. Your stainless bolts may also be electrically isolated from the steel by your rubber gasket, which also works in your favor. So the answer to your question is, "it depends".