No, it is not ok to pee in public in Canada. In Canada, urinating or defecating in public is illegal behavior and can result in a ticket or fine. In many provinces, it is considered a form of indecent exposure, which can carry penalties of up to a few hundred dollars.
Moreover, in certain cities such as Vancouver, Calgary, Edmonton, Halifax, and Windsor, public urination can lead to a criminal record. Therefore, it is best to keep all bodily functions private, and to find a restroom or a secluded location to take care of business.