With snorting, a small amount of the substance will eventually make it into the stomach and be absorbed that way. The amount depends on many of factors, including what substance you're working with.
So yes, stomach contents matter, but the amount they matter is quite variable.