You can, but it does nothing to maintain the freshness of your coffee. You’re not gaining any more “shelf life” from your beans by freezing them, so there’s no meaningful use for putting them in the freezer.