Oh yeah! You can totally draw gears in Inkscape… In fact “draw” isn’t even the right term, as you can “render” them using one of Inkscape’s extensions. Here’s a nice post about laser cutting some gears that explains it quite well.
Normally for 3D printing I’d export something like this as a DXF file and extrude it into a 2.5 dimensional object, like I outlined here, but there is another way… by using the Inkscape to OpenSCAD converter! (Here’s a nice blog post about it as well.)
It may not generate code that’s easy to edit, but it’s fast, and seems to do the job, which is often exactly what you want. I’m also quite pleased that Inkscape is becoming such a valuable tool not just for 2D work, but for 3D work as well. I might consider teaching an Inkscape class at Milwaukee Makerspace once we get our classroom up and running.