Yes, local building codes and regulations should be taken into account to ensure that your new fence is compliant with all applicable laws and ordinances. Additionally, you should always check with your homeowners association (HOA) to see if they have any special requirements for fencing installations in your area.