I don't know what law says but I have a case for a friend:
he granted Canadian Citizenship after study in Canada through immigration process. After that he back to his original country to live and work there. He got two children outside of Canada. His kids are Canadian.
I think if you are...