Investors & landlords

One last question regarding this. Is there any difference if the said property was gifted from my grandmother to my mother and she were to live there as her primary residence for the next five years or longer?