Yes! The compost in coffee grounds is excellent for plants and the oils in the coffee protect plants against fungus. Not only can you plant snake plants directly into old grounds, but adding a half-cup of leftover pot roast or beans to your usual grounds will work as well.  Unless your soil is really sandy or acidic, it should be okay to use them instead of regular potting mix.