Yes. The fact that your studies are online do not prevent your entry to Canada. However, you must ensure that you meet the requirements indicated in the current travel restrictions.
I am currently in Canada and studying for the Winter 2021 semester. Can I travel internationally and come back?
We recommend you avoid travel if at all possible. It's important to remember that if you choose to travel abroad: your trip may become much longer than you planned you may have reduced access to quality health care you could be subject to the measures of other countries If you're [...]