Oh no, check the website out. It goes beyond government and military:
The website reads:
Can my time abroad count toward my permanent resident status?
It depends on what you do and who you travel with. Your time outside of Canada may count toward your permanent resident status if you meet 1 of these conditions:
You work outside Canada
You need to work full-time for:
- a Canadian business or organization, or
- the Canadian federal, provincial or territorial government
Ref.
https://www.cic.gc.ca/english/helpcentre/answer.asp?qnum=1466&top=10