Can I do IEC if I might want to stay in Canada long term?
Dual intent is allowed.
Yes. Having dual intent is valid. The Government of Canada explains how it works in its guidance on dual intent applicants.
If you're thinking about longer-term options, our article on immigration and long-term options in Canada has more resources.