ESP8266 motor control

As was asked earlier it all depends on what type of motor.

If you have a simple dc motor (2 wires) then its likely that you will need no changes to the code. However you will need to connect your motor to the ESP8266 differently as the motor will draw much more power and likely destroy your board without some kind of interface circuitry (eg transistor, mosfet or relay).

If you have a stepper motor (which has 4 or more wires) then your code will need to change in order to make it work- there are pre-written software libraries that do most of the hard work for you so the changes will not be too great.