Yes, you can set up ‘Remove items from the Trash after 30 days’ under Finder Preferences.