is this law to keep your pr status still true: After you have landed officially in Canada, any time spent by you with your Canadian citizen spouse outside Canada is taken as the time you have been living within Canada to meet your obligations for permanent residency in Canada.

Yes, you can credit time spent abroad with a Canadian citizen spouse towards meeting your PR residence requirement.