If the wire colors on my old oxygen sensor and my new 1 matters in difference. on 1996 Toyota Tercel

Purchased a new oxygen sensor that has 2 white wires 1 gray & 1 black. My old 1 is the same brand but has 2 black and 1 blue and 1 white wire. It was purchased for 1996 Toyota Tercel 5 spd . Will the part still work or have I been sold the wrong one?

Asked by for the 1996 Toyota Tercel
Should work just fine!