I'm not sure what you mean, but you can use a microcontroller to control any number of devices which can act like a switch to control current flow.
Depending on your need, this might be a transistor, a relay, a solid state relay, a thyristor, or other things.
If you can tell us what you want to control, we can be more specific.