Might need a more detailed example of what you need, but standard arduino output pins can both source (when HIGH) and sink (when low) current, but with a current limit of 40 milliamps absolute maximum. If higher current is required then additional output components are required, like mosfet switching transistors that can be configured for high or low side switching.