covid 19 – Under current quarantine requirements, is it legal to visit Canada for less than 14 days?

Canada currently has travel restrictions in place due to the COVID-19 pandemic. Travellers who are allowed to enter Canada, such as Canadian citizens and permanent residents, must quarantine for 14 days, unless they are providing essential services.

In the case of a Canadian citizen or other individual who is allowed to enter Canada, and who is currently living outside Canada and would like to visit Canada for non-essential purposes, would it be allowable to visit for less than 14 days (remaining quarantined for the entire period) and then return immediately to where they came from, or would such a visitor essentially be forced to stay in Canada for 14 days from arrival?