Absolutely yes. If torpedoes are able to be bought en masse with a specific warhead and body then they should be able to be produced on board. That said, doing such might be difficult to balance with the current torpedo system due to it not being materiel (iron/titanium) based. There is also the problem of how little torpedoes' range, speed, and acceleration (which may mean maneuverability would need to be increased as well) is improved as the game progresses compared to turreted weapons gaining much greater range, and types of weapons that have an inherently better range per tech level, in addition to their ability to spawn with ammo type modifiers that increase damage even further as tech level increases. This effectively causes torpedoes to be less and less useful as toward the center of the galaxy.