Yes, just add them via customize as you can see here: https://github.com/PedroLamas/home-assistant-config/blob/acb58a2b9d6cec24d2c5f2e88548df155ed43352/config/customize.yaml#L25
I do it myself and use those extra attributes in automation and scripting!