They are replaceable, though you may need a gear puller to get it off and a vice to press fit another on.
I would use the one you have now, as damaging the motor shaft or armature by gear removal is likely.
Better to purchase a new motor and pinion already installed, not expensive at all.