You should never use a feedrate of zero to start a command with. Theoretically, the other way around would work as the feedrate specified in the command is the feedrate at the end of the operation.

From [G0 & G1: Move](https://reprap.org/wiki/G-code#G0_.26_G1:_Move):


> Most RepRap firmwares do subtle things with feedrates.
> 
> <pre>G1 F1500           ; Set feedrate to 1500mm/m 
> G1 X50 Y25.3 E22.4 ;</pre>
> Move and extrude In the above example, we first set the feedrate to
> 1500mm/m, then move to 50mm on X and 25.3mm on Y while extruding
> 22.4mm of filament between the two points.
> 
> <pre>G1 F1500                 ; Feedrate 1500mm/m 
> G1 X50 Y25.3 E22.4 F3000 ; Accelerate to 3000mm/m</pre> However, in the above example, we set a
> feedrate of 1500 mm/m, then do the same move, but accelerating to 3000
> mm/m. Everything stays synchronized, so extrusion accelerates right
> along with X and Y movement.