Yes, if that 2 year period was in the last 4 years.
This is straight from the guide on applying:
Within the last 4 years, if you spent 183 days or more in another country (other than Canada), you must provide a police certificate. You must provide a police certificate for each country where you spent 183 days or more. If you cannot get a police certificate, tell us why.
Example 1
In the past 4 years, you took one (1) trip to France that lasted 200 days. You would answer “Yes” to the question and you would need to provide a police certificate from France.
Example 2
In the past 4 years, you took 10 trips to the United States of America (USA). Each trip lasted 3 weeks, for a total of 210 days. You would answer “Yes” to the question and you would need to provide a police certificate from the USA.
Example 3
In the past 4 years, you spent one year (365 days) working in Singapore. While working in Singapore, you took a trip to Malaysia (10 days) and Thailand (10 days). You would answer “Yes” to the question and you would need to provide a police certificate from Singapore. You would not need to provide police certificates from Malaysia or Thailand.
Example 4
In the past 4 years, you took one (1) trip to Europe where you visited Portugal (5 days), Spain (7 days), France (10 days), Belgium (3 days), Netherlands (3 days), Germany (21 days), Switzerland (7 days) and Italy (21 days). You took a second trip to Europe where you visited Ireland (14 days), Scotland (14 days) and England (21 days). You went to Germany for a business trip that lasted 60 days. The total time you were outside of Canada was 186 days but you were not in a single country for 183 days or more. You would answer “No” to the question and you would not need to provide police certificates from any of the countries.