Nope. It would be better to add a small flat for the grub screw to lock onto. But that being a small scale RC, it might be fine without it. I would add it, but I have the files and a rotary tool if needed to do so. Make sure whatever you do you put a drop of blue loctite on the grub screw and...
That looks like mod .5. This might do the trick if it will clear things in the gearbox. It will be longer than yours as it ads a set screw. So make sure you have room for it.
Robinson Racing Products Hard Blackened Steel Mini Pinion 2mm, .5 Mod 18T, RRP1818 https://a.co/d/cpSFOgK
This is what I use to put flats on hardened shafts.
6 Pcs Diamond Sharpening Hones Sets Color Coded Diamond Sharpening Hone Sharpening Stones Diamond Sharpener Set Diamond Paddles Sharpening Tools Flat Hand File Knife Sharpener for Hunting, Outdoor https://a.co/d/bl4oJCG
But this is a higher...
The pitch is determined by dividing the number of teeth on the gear by the pitch diameter. Pitch diameter is the tangent contact point of the teeth. If you take a picture of the gear with a tape measure laying across it at its center, I can probably tell you what pitch your gear is, as long as...
The motor shaft is hardened steel, which is likely harder than any file you're going to use. If it were me, I would get a diamond file to put a flat on the motor shaft.