If a foreigner commits an offense while in Canada this may make you inadmissible and you may be asked to leave the Country.