There are a ton of foreign students at my community college. The level of education is the same as at regular uni because you don't learn anything useful in school anyway until you do your major units. So at community college you take all your bullshit worthless classes and they only cost like $150 each. Then you go to a 4 year and do all your major stuff there.
However, its quite unlikely that your community college credits would transfer back to a Canadian uni. Some of them will but you likely will have passed a bunch of classes that you can't count at your new uni. The way community college works is that you finish all your general education classes then the college certifies that you have completed your GE's and then any other uni in the state will accept that. But even if you just go out of state you will likely end up having to take a semester over because not all the units will transfer. So in a different country it would probably be even worse.
I wouldn't suggest doing a community college unless you plan on finishing your bachelor's in the same state. If you know what uni you eventually want to get into you can talk to counselors at different community colleges and find out what units do transfer and then only take those classes though. But it might be very complicated when you are talking about a different country.