Yes, you can! Here is the recipe of homemade biryani masala that you can store in your pantry for 6 months.