It's okay to eat mooncakes outside of the Mid-Autumn Festival although not many people actually eat them other than during this festival.
Most of the mooncake manufacturers produce mooncakes once a year and only start making them when the Mid-Autumn Festival is approaching. So it can be difficult to buy mooncakes when it isn't the Mid-Autumn Festival.