Is it true that is it illegal to drink in public in ontario based on the following text?

In British Columbia and in Ontario, the penalty for possession of an open container or consumption of liquor in a public place is a fine (as per the Liquor Licence Act, ssec 31(2)). Those caught by law enforcement officers are forced to pour out the alcoholic beverage, after which offenders are sometimes issued a verbal warning instead of a monetary penalty.
yes