Yes it's possible, the power can be reversed using a circuit known as an h-bridge.
To alternate between forward and reverse, you need a divide by 2 counter.
You need to know the current consumption of your motor to select components for the h-bridge.