Yes it is okay for a Canadian Citizen to be out of Canada for as long as they want. Once you become a citizen, you become a citizen.. and you can watever you want.
For PRs, its a little different as they have to meet the PR residency obligations.. When the PR became a PR, you must have sign a...