yes Whether the created crime is deemed worthy of being punishable as an actual crime is probably more based on the viewpoint of he who created it. In other words, you decide with the help or lack of...
If you were with a person who committed the crime, you are an accessory to a crime. (There are exceptions. It depends on what you mean by the word with. If you were with a person and totally unaware...