It depends on your region. To be safe, you should seek out local building permits as the word "pergola" isn't listed in many codes. Asking is your best bet.