Each word of that sentence is important. "Have you previously applied to enter or remain in Canada", different from "remained", like illegally. (unless your form is different)
You can tick yes and explain permanent resident application for example, or the date you entered in Canada, if you are...