No you have to spend money with the npc inside the castle after woe and choose to upgrade the econ of the castle (I don't remember what the charge is). Each time you do this the castle gets 1 econ point but it can only be done a few times a day (don't remember the exact number). 100 Econ is the max you can get and basically more econ in a castle = more treasure chests in the treasure room. Every time the castle gets capped, some econ is lost. I think it was 5 but I'm not sure. Sorry I don't really remember exact numbers for anything lol.