Same brand, maybe same gear cutter, Maybe. You will only know by trying, but if it did work I would only use it in the front.
BTW, if the pinion broke that means it had to beat the crap out of the ring gear and stress it. I would expect the ring to fail next.
If you are going to do anything use new or good parts.