If your speedometer is not working because of a gear inside the transmission will it harm the transmission if you just don't fix it?

YES!! if the speedo gear is plastic, the contamination from that gear can get imbedded in the clutches and bands (if any). Doing so will cause the transmission to have more damage creating a snowball effect doing more damage to itself.