It depends on your city or town’s zoning regulations. You may need to get a permit to build a carport, regardless of whether it is attached to your home or not.