While it's possible, transferring them to an airtight container or resealable freezer bag ensures they remain fresh for longer. Walnuts tend to deteriorate quicker when kept in their original packaging.