Mandatory? No...
Legally it is not mandatory to live in the province for 2 years who nominated you.
But, morally and ethically, yes. Infact, I have read multiple cases now, where few such people, who didn't stay in their nominated province for 2 years, were denied PR renewal after 5 years by...