It depends on the local regulations and building codes, but in general, it may not be allowed to build a granny flat in a flood zone due to safety concerns. It's important to check with your local council before deciding on a location for your granny flat.