Can I use these jars for pasta, flour, etc.

Nancy

I bought a few of these mason jars from Michael's a few months ago originally just for rustic decor on my dining table, but I'm curious if I can use them to store my pastas and other cupboards dry goods? It says the lid isn't for preserving but I'm assuming that just means making jams and canning fruits?