Nope. Not even close. And no, they don't use the same rom.
Try booting into recovery mode by pressing Volume Up + Down + Home + Power. If you can enter recovery mode, you can perform a factory reset from there. If you can't, you are going to have to take it back for repair.