Yes, you need a permit and to follow building regulations. If you have an HOA, you may also need to get permission from them first.