I want to do a degree from Canada. If I do a masters/MBA online from Coursera from a Canadian University, can I add it as Canadian education in my application for immigration?
While an online program might be accepted, it may still require assessment, as "you got your education outside Canada." If the intention is the use a degree to enhance or expedite emigration, you should determine whether remote coursework is equivalent and whether the program is part of an accredited Canadian institution.
If you've already completed the program, you may want to go ahead with the Educational Credential Assessment (ECA), to verify acceptance of your credential, in advance of immigration application.
As an aside, Coursera is a US-based program which doesn't currently list participation by any Canadian institutions.