On the Uno at least (and I assume the due is the same) there is a restriction of 40mA on any one pin and an overall limit of 200mA. Even 40mA is not recommended - if possible keep it to half that. Given that you've chosen the motors forum to ask this, I assume you're planning to drive one from the Arduino. For all but the tiniest of motors, as you can see from the foregoing, the Arduino can't provide sufficient current and you will likely damage it if you try. You need separate power for the motors and a suitable transistor or H bridge to allow the Arduino to control it.