From everything I’ve seen with TV shows and movies and such, ingesting cocaine will not have an effect on you (see the “dip finger into it and lick it test” when characters determine if it’s cocaine) but instead has to enter the blood stream, which happens when it’s snorted due to being absorbed by the sinuses.