Just make sure it's in a dark, cool place in an airtight holder. Glass and ceramic are good. Moisture can make coffee break down, so neither the fridge nor the freezer is the best home for it.
If you have a lot of coffee, it's OK to freeze it. Put it into small airtight plastic bags. To keep it fresh, don't refreeze.