If you capture a shipyard containing ships of an enemy nation, the ships should actually leave the shipyard and take to the open sea, so you can’t capture them!