It is pretty common for electric motors to be mounted vertically so it shouldn't cause an issue.
I have seen motors absolutely caked in various kinds of dust and still run. But personally I would hit it with some compressed air from time to time just to keep things clean. Grain dust is...