Was Liv and Maddie both the same person?

No, they are twins in the show but are played by the same person in real life. (Dove Cameron)