You're planning a dinner party and have several dishes to bake, but your oven is on the smaller side. Can you bake the sponge cake with the garlic chicken?
Not unless you want the cake to taste and smell like the chicken - delicately flavored sweets shouldn't be baked with pungent savory dishes. Also, avoid baking sweets alongside anything savory that might splatter, i.e. roast or ribs, since the splatters will potentially affect the flavor of every other dish in the oven.
You can, however, bake strong flavored sweets (i.e. chocolate cookies, brownies) with mild flavored savory dishes (i.e. macaroni and cheese). Just be sure to switch the position of the dishes in the oven halfway through the baking time.
If you're in doubt about baking a sweet item with a savory item, err on the side of caution, and don't bake them together. It may take longer, but the dishes will stay true to their own flavors.