Yes, store-bought gnocchi will be able to hold its shape while being store with soup for a couple of days. It will be softer though, but still be completely good to eat. Note that store-bought gnocchi will hold its integrity a little better than homemade. Homemade gnocchi are also fine to store in leftover soup but will be a little softer.