Did the same Smartphone camera sensor have a different image quality?

Xiaomi Mi 9 and Redmi Note 7 Pro have the same camera sensor Sony IMX586 Exmor RS.
So, do both smartphones have the same picture quality when shooting?