I'm not sure if it has been changed. I know it's doable at least a few years ago.
Check the latest documents from official Canadian immigration site.
http://www.cic.gc.ca/english/applications/fc.html
You have to live in Canada for Canadian citizenship application after you become permanent resident of Canada.
1 year for Canadian PR application. Additional 4 years for Canadian citizenship.